diff options
Diffstat (limited to 'kitchensync/src/pluginpicker.cpp')
-rw-r--r-- | kitchensync/src/pluginpicker.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
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 <libqopensync/environment.h> +#include <libqopensync/pluginenv.h> #include <kdialog.h> #include <kglobal.h> @@ -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 ) ); } } |