summaryrefslogtreecommitdiff
path: root/src/modules/options
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-22 15:27:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-22 15:27:01 +0000
commitf476f43ac65d4c8cc8cb69b19662966b45043c88 (patch)
tree729c705797c8c242669a4bf1ee1a30ecc8775b53 /src/modules/options
parent8b9b23f22332eeb056b00fb659e0e79838bc0527 (diff)
if there's no modernopt plugin, link to them should be disabled
git-svn-id: http://svn.miranda-ng.org/main/trunk@2046 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/options')
-rw-r--r--src/modules/options/options.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp
index 031691e5c2..56f48befda 100644
--- a/src/modules/options/options.cpp
+++ b/src/modules/options/options.cpp
@@ -667,6 +667,9 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hdlg, UINT message, WPARAM wParam, L
case WM_INITDIALOG:
TranslateDialogDefault(hdlg);
+
+ if ( !ServiceExists(MS_MODERNOPT_SHOW))
+ ShowWindow( GetDlgItem(hdlg, IDC_MODERN), FALSE);
{
PROPSHEETHEADER *psh = (PROPSHEETHEADER*)lParam;
OPENOPTIONSDIALOG *ood = (OPENOPTIONSDIALOG*)psh->pStartPage;
@@ -1126,17 +1129,15 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hdlg, UINT message, WPARAM wParam, L
if ((HIWORD(wParam) == CBN_SELCHANGE) || (HIWORD(wParam) == CBN_EDITCHANGE))
if ( !SetTimer(hdlg, FILTER_TIMEOUT_TIMER, 400, NULL))
MessageBeep(MB_ICONSTOP);
-
break;
case IDC_MODERN:
- {
- DBWriteContactSettingByte(NULL, "Options", "Expert", 0);
- SaveOptionsTreeState(hdlg);
- PostMessage(hdlg, WM_CLOSE, 0, 0);
- CallService(MS_MODERNOPT_SHOW, 0, 0);
- break;
- }
+ DBWriteContactSettingByte(NULL, "Options", "Expert", 0);
+ SaveOptionsTreeState(hdlg);
+ PostMessage(hdlg, WM_CLOSE, 0, 0);
+ CallService(MS_MODERNOPT_SHOW, 0, 0);
+ break;
+
case IDCANCEL:
{
PSHNOTIFY pshn;