From: Enar Väikene Date: Tue, 27 Sep 2011 09:49:47 +0000 (+0300) Subject: Fixed unloading plugins: X-Git-Url: https://vaikene.ee/gitweb/index.html?a=commitdiff_plain;h=becd4d0b1d95aaa84266f75ec105ba723127c48a;p=evaf Fixed unloading plugins: * Plugins are now finalized in the reverse order. --- 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)