author | zecke <zecke> | 2002-10-21 22:37:55 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-21 22:37:55 (UTC) |
commit | d7a4ad19a8493dbb226e7f8355c49dafd1fa9597 (patch) (side-by-side diff) | |
tree | b9a77d8f25face1640a91b9030b93f61085fc2a4 | |
parent | d6a40efdb9d81d39972a1304bd62ac60bb45e996 (diff) | |
download | opie-d7a4ad19a8493dbb226e7f8355c49dafd1fa9597.zip opie-d7a4ad19a8493dbb226e7f8355c49dafd1fa9597.tar.gz opie-d7a4ad19a8493dbb226e7f8355c49dafd1fa9597.tar.bz2 |
one more mimetype for scripts
this makes play nirvana work ;)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 2 |
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() { void MainWindow::slotSaveScript() { if (currentSession() && currentSession()->emulationHandler()->isRecording()) { MimeTypes types; QStringList script; script << "text/plain"; script << "text/all"; + script << "application/octet-stream"; types.insert("Script", script); QString filename = OFileDialog::getSaveFileName(2, "/", QString::null, types); if (!filename.isEmpty()) { currentSession()->emulationHandler()->script()->saveTo(filename); currentSession()->emulationHandler()->clearScript(); } @@ -309,12 +310,13 @@ void MainWindow::slotSaveScript() { void MainWindow::slotRunScript() { if (currentSession()) { MimeTypes types; QStringList script; script << "text/plain"; script << "text/all"; + script << "application/octet-stream"; types.insert("Script", script); QString filename = OFileDialog::getOpenFileName(2, "/", QString::null, types); if (!filename.isEmpty()) { Script script(DocLnk(filename).file()); currentSession()->emulationHandler()->runScript(&script); } |