-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/opie-console/script.cpp | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index afac542..7ffeca7 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -297,4 +297,5 @@ void MainWindow::slotSaveScript() { QStringList script; script << "text/plain"; + script << "text/all"; types.insert("Script", script); QString filename = OFileDialog::getSaveFileName(2, "/", QString::null, types); @@ -311,4 +312,5 @@ void MainWindow::slotRunScript() { QStringList script; script << "text/plain"; + script << "text/all"; types.insert("Script", script); QString filename = OFileDialog::getOpenFileName(2, "/", QString::null, types); diff --git a/noncore/apps/opie-console/script.cpp b/noncore/apps/opie-console/script.cpp index 9cb1cd3..e6e9d6d 100644 --- a/noncore/apps/opie-console/script.cpp +++ b/noncore/apps/opie-console/script.cpp @@ -8,4 +8,5 @@ Script::Script() { Script::Script(const QString fileName) { QFile file(fileName); + file.open(IO_ReadOnly ); m_script = file.readAll(); } |