summaryrefslogtreecommitdiff
authorzecke <zecke>2002-10-21 22:35:37 (UTC)
committer zecke <zecke>2002-10-21 22:35:37 (UTC)
commitd6a40efdb9d81d39972a1304bd62ac60bb45e996 (patch) (side-by-side diff)
tree47cc96d6457e809621f40610737407532f04f98c
parent151729eb3e4e4cfbb69db1f027e74188cf55c328 (diff)
downloadopie-d6a40efdb9d81d39972a1304bd62ac60bb45e996.zip
opie-d6a40efdb9d81d39972a1304bd62ac60bb45e996.tar.gz
opie-d6a40efdb9d81d39972a1304bd62ac60bb45e996.tar.bz2
Fix scriptiong Open the file before reading from it
Add text/all to the mimetypes this makes recording, saving and running work
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp2
-rw-r--r--noncore/apps/opie-console/script.cpp1
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
@@ -298,2 +298,3 @@ void MainWindow::slotSaveScript() {
script << "text/plain";
+ script << "text/all";
types.insert("Script", script);
@@ -312,2 +313,3 @@ void MainWindow::slotRunScript() {
script << "text/plain";
+ script << "text/all";
types.insert("Script", script);
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
@@ -9,2 +9,3 @@ Script::Script(const QString fileName) {
QFile file(fileName);
+ file.open(IO_ReadOnly );
m_script = file.readAll();