From d8b40941f9d1a221add0b9094eb09405a91a8aab Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 7 Sep 2010 22:30:29 +0000 Subject: Part 2/2 of Chakra patch commit git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1172727 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kitchensync/src/pluginpicker.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'kitchensync/src/pluginpicker.cpp') diff --git a/kitchensync/src/pluginpicker.cpp b/kitchensync/src/pluginpicker.cpp index d981599bd..5dda30bfe 100644 --- a/kitchensync/src/pluginpicker.cpp +++ b/kitchensync/src/pluginpicker.cpp @@ -24,7 +24,7 @@ #include "memberinfo.h" #include "syncprocessmanager.h" -#include +#include #include #include @@ -77,12 +77,14 @@ void PluginPicker::updatePluginList() { mPluginList->clear(); - QSync::Environment *env = SyncProcessManager::self()->environment(); + const QSync::PluginEnv *env = SyncProcessManager::self()->pluginEnv(); + + for ( int i = 0; i < env->pluginCount(); ++i ) { + QSync::Plugin plugin = env->pluginAt( i ); + + if ( plugin.isValid() ) + mPluginList->appendItem( new PluginItem( mPluginList, plugin ) ); - QSync::Environment::PluginIterator it( env->pluginBegin() ); - for( ; it != env->pluginEnd(); ++it ) { - QSync::Plugin plugin = *it; - mPluginList->appendItem( new PluginItem( mPluginList, plugin ) ); } } -- cgit v1.2.1