summaryrefslogtreecommitdiff
authorzecke <zecke>2002-10-21 22:37:55 (UTC)
committer zecke <zecke>2002-10-21 22:37:55 (UTC)
commitd7a4ad19a8493dbb226e7f8355c49dafd1fa9597 (patch) (unidiff)
treeb9a77d8f25face1640a91b9030b93f61085fc2a4
parentd6a40efdb9d81d39972a1304bd62ac60bb45e996 (diff)
downloadopie-d7a4ad19a8493dbb226e7f8355c49dafd1fa9597.zip
opie-d7a4ad19a8493dbb226e7f8355c49dafd1fa9597.tar.gz
opie-d7a4ad19a8493dbb226e7f8355c49dafd1fa9597.tar.bz2
one more mimetype for scripts
this makes play nirvana work ;)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 7ffeca7..89f3516 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -294,12 +294,13 @@ void MainWindow::slotRecordScript() {
294void MainWindow::slotSaveScript() { 294void MainWindow::slotSaveScript() {
295 if (currentSession() && currentSession()->emulationHandler()->isRecording()) { 295 if (currentSession() && currentSession()->emulationHandler()->isRecording()) {
296 MimeTypes types; 296 MimeTypes types;
297 QStringList script; 297 QStringList script;
298 script << "text/plain"; 298 script << "text/plain";
299 script << "text/all"; 299 script << "text/all";
300 script << "application/octet-stream";
300 types.insert("Script", script); 301 types.insert("Script", script);
301 QString filename = OFileDialog::getSaveFileName(2, "/", QString::null, types); 302 QString filename = OFileDialog::getSaveFileName(2, "/", QString::null, types);
302 if (!filename.isEmpty()) { 303 if (!filename.isEmpty()) {
303 currentSession()->emulationHandler()->script()->saveTo(filename); 304 currentSession()->emulationHandler()->script()->saveTo(filename);
304 currentSession()->emulationHandler()->clearScript(); 305 currentSession()->emulationHandler()->clearScript();
305 } 306 }
@@ -309,12 +310,13 @@ void MainWindow::slotSaveScript() {
309void MainWindow::slotRunScript() { 310void MainWindow::slotRunScript() {
310 if (currentSession()) { 311 if (currentSession()) {
311 MimeTypes types; 312 MimeTypes types;
312 QStringList script; 313 QStringList script;
313 script << "text/plain"; 314 script << "text/plain";
314 script << "text/all"; 315 script << "text/all";
316 script << "application/octet-stream";
315 types.insert("Script", script); 317 types.insert("Script", script);
316 QString filename = OFileDialog::getOpenFileName(2, "/", QString::null, types); 318 QString filename = OFileDialog::getOpenFileName(2, "/", QString::null, types);
317 if (!filename.isEmpty()) { 319 if (!filename.isEmpty()) {
318 Script script(DocLnk(filename).file()); 320 Script script(DocLnk(filename).file());
319 currentSession()->emulationHandler()->runScript(&script); 321 currentSession()->emulationHandler()->runScript(&script);
320 } 322 }