author | zecke <zecke> | 2002-09-15 21:46:39 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-15 21:46:39 (UTC) |
commit | 0b644b439bb8512de36384011dc6a275c0c7540c (patch) (unidiff) | |
tree | 106eb135e08838146a232ba12724a73ba9d61fb7 | |
parent | aead7682f97a416fae0b08b3a6582bc09551b5bc (diff) | |
download | opie-0b644b439bb8512de36384011dc6a275c0c7540c.zip opie-0b644b439bb8512de36384011dc6a275c0c7540c.tar.gz opie-0b644b439bb8512de36384011dc6a275c0c7540c.tar.bz2 |
double items prob + qWarning output
-rw-r--r-- | core/pim/today/today.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 09540bd..7decf8e 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -115,18 +115,19 @@ void Today::init() { | |||
115 | 115 | ||
116 | 116 | ||
117 | /** | 117 | /** |
118 | * Load the plugins | 118 | * Load the plugins |
119 | */ | 119 | */ |
120 | void Today::loadPlugins() { | 120 | void Today::loadPlugins() { |
121 | 121 | qWarning("pluginList count %d", pluginList.count() ); | |
122 | QValueList<TodayPlugin>::Iterator tit; | 122 | QValueList<TodayPlugin>::Iterator tit; |
123 | for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) { | 123 | for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) { |
124 | (*tit).library->unload(); | 124 | (*tit).library->unload(); |
125 | delete (*tit).library; | 125 | delete (*tit).library; |
126 | } | 126 | } |
127 | pluginList.clear(); | ||
127 | 128 | ||
128 | QString path = QPEApplication::qpeDir() + "/plugins/today"; | 129 | QString path = QPEApplication::qpeDir() + "/plugins/today"; |
129 | QDir dir( path, "lib*.so" ); | 130 | QDir dir( path, "lib*.so" ); |
130 | 131 | ||
131 | QStringList list = dir.entryList(); | 132 | QStringList list = dir.entryList(); |
132 | QStringList::Iterator it; | 133 | QStringList::Iterator it; |
@@ -155,12 +156,13 @@ void Today::loadPlugins() { | |||
155 | count++; | 156 | count++; |
156 | } else { | 157 | } else { |
157 | qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() ); | 158 | qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() ); |
158 | delete lib; | 159 | delete lib; |
159 | } | 160 | } |
160 | } | 161 | } |
162 | qWarning("pluginList count end %d", pluginList.count() ); | ||
161 | } | 163 | } |
162 | 164 | ||
163 | 165 | ||
164 | /** | 166 | /** |
165 | * Repaint method. Reread all fields. | 167 | * Repaint method. Reread all fields. |
166 | */ | 168 | */ |