summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2016-09-06 12:51:20 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2016-09-06 12:51:20 (GMT)
commitf1e8c7a53950fdf78546869cc55dfdae5e5f983a (patch)
tree8234444bc0a3ac3b7374d7c508c5271d1a78f1ca
parent0a483167b98715181c72a3cfc0ffd37a1fa41cd8 (diff)
load plugins in right order to have preference for plugins first in plugin path
-rw-r--r--kate/katepluginmanager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/kate/katepluginmanager.cpp b/kate/katepluginmanager.cpp
index d018374..3f0f5f9 100644
--- a/kate/katepluginmanager.cpp
+++ b/kate/katepluginmanager.cpp
@@ -72,11 +72,10 @@ void KatePluginManager::setupPluginList()
defaultPlugins.insert (QLatin1String("katesearchplugin"));
m_pluginList.clear();
QVectorIterator<KPluginMetaData> i(plugins);
- i.toBack();
QSet<QString> unique;
- while (i.hasPrevious()) {
+ while (i.hasNext()) {
KatePluginInfo info;
- info.metaData = i.previous();
+ info.metaData = i.next();
// only load plugins once, even if found multiple times!
if (unique.contains(info.saveName()))