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/options | |
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/options')
-rw-r--r-- | src/modules/options/options.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp index 7f800d05b3..f5ffc14c27 100644 --- a/src/modules/options/options.cpp +++ b/src/modules/options/options.cpp @@ -43,8 +43,6 @@ static int FilterPage = 0; static int FilterLoadProgress = 100;
static int FilterTimerId = 0;
-extern bool bOldMode;
-
struct OptionsPageInit
{
int pageCount;
@@ -690,7 +688,7 @@ public: if (msg == WM_INITDIALOG)
lParam = m_lParam;
- return CallWindowProc(m_wndProc, m_hwnd, msg, wParam, lParam);
+ return m_wndProc(m_hwnd, msg, wParam, lParam);
}
};
@@ -1320,16 +1318,15 @@ 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;
}
int ShutdownOptionsModule(WPARAM, LPARAM)
{
- if (IsWindow(hwndOptions))
+ if (IsWindow(hwndOptions)) {
DestroyWindow(hwndOptions);
- hwndOptions = NULL;
+ hwndOptions = NULL;
+ }
return 0;
}
|