author | zecke <zecke> | 2002-10-21 22:35:37 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-21 22:35:37 (UTC) |
commit | d6a40efdb9d81d39972a1304bd62ac60bb45e996 (patch) (unidiff) | |
tree | 47cc96d6457e809621f40610737407532f04f98c /noncore/apps/opie-console/script.cpp | |
parent | 151729eb3e4e4cfbb69db1f027e74188cf55c328 (diff) | |
download | opie-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 (limited to 'noncore/apps/opie-console/script.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/script.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 | |||
@@ -4,12 +4,13 @@ | |||
4 | 4 | ||
5 | Script::Script() { | 5 | Script::Script() { |
6 | } | 6 | } |
7 | 7 | ||
8 | Script::Script(const QString fileName) { | 8 | Script::Script(const QString fileName) { |
9 | QFile file(fileName); | 9 | QFile file(fileName); |
10 | file.open(IO_ReadOnly ); | ||
10 | m_script = file.readAll(); | 11 | m_script = file.readAll(); |
11 | } | 12 | } |
12 | 13 | ||
13 | void Script::saveTo(const QString fileName) const { | 14 | void Script::saveTo(const QString fileName) const { |
14 | QFile file(fileName); | 15 | QFile file(fileName); |
15 | file.open(IO_WriteOnly); | 16 | file.open(IO_WriteOnly); |