[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kontact/src
From: Allen Winter <winter () kde ! org>
Date: 2008-04-30 19:16:33
Message-ID: 1209582993.430102.9427.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 802827 by winterz:
add a debug statement for failed plugin loading in loadPlugins().
also move the plugin variable around in scope.
M +5 -2 mainwindow.cpp
--- trunk/KDE/kdepim/kontact/src/mainwindow.cpp #802826:802827
@@ -434,8 +434,10 @@
if ( !it->isPluginEnabled() ) {
continue;
}
+
+ Plugin *plugin = 0;
if ( isPluginLoaded( *it ) ) {
- Plugin *plugin = pluginFromInfo( *it );
+ plugin = pluginFromInfo( *it );
if ( plugin ) {
plugin->configUpdated();
}
@@ -443,9 +445,10 @@
}
kDebug() << "Loading Plugin:" << it->name();
- Kontact::Plugin *plugin = KService::createInstance<Kontact::Plugin>( it->service(), this );
+ plugin = KService::createInstance<Kontact::Plugin>( it->service(), this );
if ( !plugin ) {
+ kDebug() << "Unable to create plugin for " << it->name();
continue;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic