summaryrefslogtreecommitdiff
authorzecke <zecke>2002-09-15 21:46:39 (UTC)
committer zecke <zecke>2002-09-15 21:46:39 (UTC)
commit0b644b439bb8512de36384011dc6a275c0c7540c (patch) (side-by-side diff)
tree106eb135e08838146a232ba12724a73ba9d61fb7
parentaead7682f97a416fae0b08b3a6582bc09551b5bc (diff)
downloadopie-0b644b439bb8512de36384011dc6a275c0c7540c.zip
opie-0b644b439bb8512de36384011dc6a275c0c7540c.tar.gz
opie-0b644b439bb8512de36384011dc6a275c0c7540c.tar.bz2
double items prob + qWarning output
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp4
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
@@ -113,22 +113,23 @@ void Today::init() {
m_excludeApplets = cfg.readListEntry( "ExcludeApplets", ',' );
}
/**
* Load the plugins
*/
void Today::loadPlugins() {
-
+ qWarning("pluginList count %d", pluginList.count() );
QValueList<TodayPlugin>::Iterator tit;
for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) {
(*tit).library->unload();
delete (*tit).library;
}
+ pluginList.clear();
QString path = QPEApplication::qpeDir() + "/plugins/today";
QDir dir( path, "lib*.so" );
QStringList list = dir.entryList();
QStringList::Iterator it;
uint count = 0;
@@ -153,16 +154,17 @@ void Today::loadPlugins() {
plugin.guiPart = plugin.iface->guiPart();
pluginList.append( plugin );
count++;
} else {
qDebug( "could not recognize %s", QString( path + "/" + *it ).latin1() );
delete lib;
}
}
+ qWarning("pluginList count end %d", pluginList.count() );
}
/**
* Repaint method. Reread all fields.
*/
void Today::draw() {