diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-02-19 10:48:23 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-02-19 10:48:23 +0000 |
commit | e1a01b5f23430304b900b9817fdcdfd12bc75808 (patch) | |
tree | 26628a900ee7679785b853246e99a0754124f91b /plugins/ClientChangeNotify/src/OptDlg.cpp | |
parent | 940d9acd86edda613e78d173129877decb4373d8 (diff) |
- Create PopUp options pages only when popup plugin present
git-svn-id: http://svn.miranda-ng.org/main/trunk@3642 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ClientChangeNotify/src/OptDlg.cpp')
-rw-r--r-- | plugins/ClientChangeNotify/src/OptDlg.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/plugins/ClientChangeNotify/src/OptDlg.cpp b/plugins/ClientChangeNotify/src/OptDlg.cpp index ac196f72c7..4a348a3d8b 100644 --- a/plugins/ClientChangeNotify/src/OptDlg.cpp +++ b/plugins/ClientChangeNotify/src/OptDlg.cpp @@ -172,16 +172,18 @@ INT_PTR CALLBACK PopupOptDlg(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara int OptionsDlgInit(WPARAM wParam, LPARAM lParam)
{
- OPTIONSDIALOGPAGE optDi = {0};
- optDi.cbSize = sizeof(optDi);
- optDi.position = 920000000;
- optDi.ptszTitle = LPGENT("ClientChangeNotify");
- optDi.pfnDlgProc = PopupOptDlg;
- optDi.pszTemplate = MAKEINTRESOURCEA(IDD_POPUPOPTDLG);
- optDi.hInstance = g_hInstance;
- optDi.ptszGroup = LPGENT("PopUps");
- optDi.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
- Options_AddPage(wParam, &optDi);
+ if (ServiceExists(MS_POPUP_ADDPOPUP)) {
+ OPTIONSDIALOGPAGE optDi = {0};
+ optDi.cbSize = sizeof(optDi);
+ optDi.position = 920000000;
+ optDi.ptszTitle = LPGENT("ClientChangeNotify");
+ optDi.pfnDlgProc = PopupOptDlg;
+ optDi.pszTemplate = MAKEINTRESOURCEA(IDD_POPUPOPTDLG);
+ optDi.hInstance = g_hInstance;
+ optDi.ptszGroup = LPGENT("PopUps");
+ optDi.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
+ Options_AddPage(wParam, &optDi);
+ }
return 0;
}
|