From becd4d0b1d95aaa84266f75ec105ba723127c48a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Enar=20V=C3=A4ikene?= Date: Tue, 27 Sep 2011 12:49:47 +0300 Subject: [PATCH] Fixed unloading plugins: * Plugins are now finalized in the reverse order. --- src/libs/Plugins/pluginmanager.cpp | 2 +- src/libs/Plugins/version.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/Plugins/pluginmanager.cpp b/src/libs/Plugins/pluginmanager.cpp index 643cad2..3f0d9f6 100644 --- a/src/libs/Plugins/pluginmanager.cpp +++ b/src/libs/Plugins/pluginmanager.cpp @@ -325,7 +325,7 @@ bool PluginManagerPrivate::loadPlugins() void PluginManagerPrivate::unloadPlugins() { // Finalize all the plugins - for (int i = 0; i < mPlugins.size(); ++i) + for (int i = mPlugins.size() - 1; i >= 0; --i) mPlugins.at(i)->done(); while (!mPlugins.isEmpty()) { QExplicitlySharedDataPointer p = mPlugins.takeLast(); diff --git a/src/libs/Plugins/version.h b/src/libs/Plugins/version.h index 1a47b8a..219a10a 100644 --- a/src/libs/Plugins/version.h +++ b/src/libs/Plugins/version.h @@ -25,12 +25,12 @@ /** * Module/library version number in the form major,minor,release,build */ -#define VER_FILE_VERSION 0,1,1,3 +#define VER_FILE_VERSION 0,1,2,4 /** * Module/library version number in the string format (shall end with \0) */ -#define VER_FILE_VERSION_STR "0.1.1.3\0" +#define VER_FILE_VERSION_STR "0.1.2.4\0" /** * Module/library name (shall end with \0) -- 2.47.0