author | zecke <zecke> | 2002-04-22 16:57:17 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-04-22 16:57:17 (UTC) |
commit | cca7f8ae4f60ae9b6c704d200ab015233abdd4d7 (patch) (unidiff) | |
tree | c472d8d52bb27811f6400cb35a61f84e2387df71 /library | |
parent | ed0b3a5518e741c0991c659b6b9ec9984e1ff2a6 (diff) | |
download | opie-cca7f8ae4f60ae9b6c704d200ab015233abdd4d7.zip opie-cca7f8ae4f60ae9b6c704d200ab015233abdd4d7.tar.gz opie-cca7f8ae4f60ae9b6c704d200ab015233abdd4d7.tar.bz2 |
First fix for not finding files anymore.
I'm going to the movies and then I'll fix
the launcher case....
-rw-r--r-- | library/global.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/global.cpp b/library/global.cpp index 5a28595..4f1cc38 100644 --- a/library/global.cpp +++ b/library/global.cpp | |||
@@ -52,27 +52,27 @@ | |||
52 | 52 | ||
53 | namespace { | 53 | namespace { |
54 | // checks if the storage should be searched | 54 | // checks if the storage should be searched |
55 | bool checkStorage(const QString &path ){ // this is a small Config replacement cause config is too limited -zecke | 55 | bool checkStorage(const QString &path ){ // this is a small Config replacement cause config is too limited -zecke |
56 | QFile file(path ); | 56 | QFile file(path ); |
57 | if(!file.open(IO_ReadOnly ) ) | 57 | if(!file.open(IO_ReadOnly ) ) |
58 | return true; | 58 | return true; |
59 | 59 | ||
60 | QByteArray array = file.readAll(); | 60 | QByteArray array = file.readAll(); |
61 | QStringList list = QStringList::split('\n', QString( array ) ); | 61 | QStringList list = QStringList::split('\n', QString( array ) ); |
62 | for(QStringList::Iterator it = list.begin(); it != list.end(); ++it ){ | 62 | for(QStringList::Iterator it = list.begin(); it != list.end(); ++it ){ |
63 | if( (*it).startsWith("autocheck = 0" ) ){ | 63 | if( (*it).startsWith("autocheck = 0" ) ){ |
64 | return true; | ||
65 | }else if( (*it).startsWith("autocheck = 1" ) ){ | ||
66 | return false; | 64 | return false; |
65 | }else if( (*it).startsWith("autocheck = 1" ) ){ | ||
66 | return true; | ||
67 | } | 67 | } |
68 | } | 68 | } |
69 | return true; | 69 | return true; |
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | //#include "quickexec_p.h" | 73 | //#include "quickexec_p.h" |
74 | 74 | ||
75 | class Emitter : public QObject { | 75 | class Emitter : public QObject { |
76 | Q_OBJECT | 76 | Q_OBJECT |
77 | public: | 77 | public: |
78 | Emitter( QWidget* receiver, const QString& document ) | 78 | Emitter( QWidget* receiver, const QString& document ) |