diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-03 08:44:07 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-03 08:44:07 +0000 |
commit | fec96650e2e222235febc1b3a71bc3a33736fbb0 (patch) | |
tree | 0641e6c0a1db39d3ec2267c438caf4d7d1ac5b02 /src/modules/plugins | |
parent | 92d8597987c1f5c019c7fa98b89cb234bc2b8cd6 (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@13388 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/plugins')
-rw-r--r-- | src/modules/plugins/pluginopts.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/plugins/pluginopts.cpp b/src/modules/plugins/pluginopts.cpp index bcd549ed1e..d6fba2df05 100644 --- a/src/modules/plugins/pluginopts.cpp +++ b/src/modules/plugins/pluginopts.cpp @@ -30,8 +30,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. extern MUUID miid_clist, miid_database, miid_protocol;
HANDLE hevLoadModule, hevUnloadModule;
-bool bOldMode = false;
+static bool bOldMode = false;
static CMString szFilter;
static UINT_PTR timerID;
@@ -562,6 +562,8 @@ int PluginOptionsInit(WPARAM wParam, LPARAM) void LoadPluginOptions()
{
+ bOldMode = db_get_b(NULL, "Options", "OldPluginSettings", false) != 0;
+
hevLoadModule = CreateHookableEvent(ME_SYSTEM_MODULELOAD);
hevUnloadModule = CreateHookableEvent(ME_SYSTEM_MODULEUNLOAD);
}
|