Commit 4d94ecdc authored by Mike Kremer's avatar Mike Kremer
Browse files

Removes all duplicate entries of plugins that are loaded at runtime

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c3a92104
......@@ -151,7 +151,17 @@ void Core::loadPlugins()
QStringList pluginlist2 = OpenFlipper::Options::pluginDir().entryList(filters,QDir::Files);
for (int i=0; i < pluginlist2.size(); i++)
pluginlist2[i] = OpenFlipper::Options::pluginDir().absoluteFilePath(pluginlist2[i]);
pluginlist2[i] = OpenFlipper::Options::pluginDir().absoluteFilePath(pluginlist2[i]);
// Remove all duplicate entries
for (QStringList::const_iterator constIterator = pluginlist.constBegin(); constIterator != pluginlist.constEnd();
++constIterator) {
for (QStringList::const_iterator constIterator2 = pluginlist2.constBegin(); constIterator2 != pluginlist2.constEnd();
++constIterator2) {
pluginlist += pluginlist2;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment