-rw-r--r-- | core/pim/today/today.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp index 7decf8e..09540bd 100644 --- a/core/pim/today/today.cpp +++ b/core/pim/today/today.cpp | |||
@@ -115,19 +115,18 @@ 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 | qWarning("pluginList count %d", pluginList.count() ); | 121 | |
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(); | ||
128 | 127 | ||
129 | QString path = QPEApplication::qpeDir() + "/plugins/today"; | 128 | QString path = QPEApplication::qpeDir() + "/plugins/today"; |
130 | QDir dir( path, "lib*.so" ); | 129 | QDir dir( path, "lib*.so" ); |
131 | 130 | ||
132 | QStringList list = dir.entryList(); | 131 | QStringList list = dir.entryList(); |
133 | QStringList::Iterator it; | 132 | QStringList::Iterator it; |
@@ -156,13 +155,12 @@ void Today::loadPlugins() { | |||
156 | count++; | 155 | count++; |
157 | } else { | 156 | } else { |
158 | qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() ); | 157 | qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() ); |
159 | delete lib; | 158 | delete lib; |
160 | } | 159 | } |
161 | } | 160 | } |
162 | qWarning("pluginList count end %d", pluginList.count() ); | ||
163 | } | 161 | } |
164 | 162 | ||
165 | 163 | ||
166 | /** | 164 | /** |
167 | * Repaint method. Reread all fields. | 165 | * Repaint method. Reread all fields. |
168 | */ | 166 | */ |