summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/pluginpicker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/src/pluginpicker.cpp')
-rw-r--r--kitchensync/src/pluginpicker.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/kitchensync/src/pluginpicker.cpp b/kitchensync/src/pluginpicker.cpp
index 5dda30bfe..d981599bd 100644
--- a/kitchensync/src/pluginpicker.cpp
+++ b/kitchensync/src/pluginpicker.cpp
@@ -24,7 +24,7 @@
#include "memberinfo.h"
#include "syncprocessmanager.h"
-#include <libqopensync/pluginenv.h>
+#include <libqopensync/environment.h>
#include <kdialog.h>
#include <kglobal.h>
@@ -77,14 +77,12 @@ void PluginPicker::updatePluginList()
{
mPluginList->clear();
- 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 *env = SyncProcessManager::self()->environment();
+ QSync::Environment::PluginIterator it( env->pluginBegin() );
+ for( ; it != env->pluginEnd(); ++it ) {
+ QSync::Plugin plugin = *it;
+ mPluginList->appendItem( new PluginItem( mPluginList, plugin ) );
}
}