diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-06 16:23:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-06 16:23:30 +0000 |
commit | 7fc9837e1f9bbd0f0687fea96cda8dfbf4c1932b (patch) | |
tree | 9ddad87da57e03931214005b5ccc0f5ac50dcd46 /src/modules/options | |
parent | fbde0c85088a5d0c085f014803b687be108b826c (diff) |
fix for Options/OldPluginSettings: old mode never worked, even being set in a database
git-svn-id: http://svn.miranda-ng.org/main/trunk@3906 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/options')
-rw-r--r-- | src/modules/options/options.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp index e7fd848af1..7c49a8c973 100644 --- a/src/modules/options/options.cpp +++ b/src/modules/options/options.cpp @@ -41,6 +41,8 @@ static int FilterPage = 0; static int FilterLoadProgress = 100;
static int FilterTimerId = 0;
+extern bool bOldMode;
+
struct OptionsPageInit
{
int pageCount;
@@ -1394,6 +1396,8 @@ static int OptModulesLoaded(WPARAM, LPARAM) mi.pszName = LPGEN("&Options...");
mi.pszService = "Options/OptionsCommand";
Menu_AddMainMenuItem(&mi);
+
+ bOldMode = db_get_b(NULL, "Options", "OldPluginSettings", false) != 0;
return 0;
}
|