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/SecureIM/src | |
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/SecureIM/src')
-rw-r--r-- | plugins/SecureIM/src/popupOptions.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/plugins/SecureIM/src/popupOptions.cpp b/plugins/SecureIM/src/popupOptions.cpp index 2b6ee87876..d0ac6983eb 100644 --- a/plugins/SecureIM/src/popupOptions.cpp +++ b/plugins/SecureIM/src/popupOptions.cpp @@ -225,14 +225,16 @@ void RefreshPopupOptionsDlg(HWND hec,HWND hdc,HWND hss,HWND hsr,HWND hks,HWND hk int onRegisterPopOptions(WPARAM wParam, LPARAM)
{
- OPTIONSDIALOGPAGE odp = {0};
- odp.cbSize = sizeof(odp);
- odp.hInstance = g_hInst;
- odp.pszTemplate = MAKEINTRESOURCE(IDD_POPUP);
- odp.pszTitle = (char*)szModuleName;
- odp.pszGroup = LPGEN("PopUps");
- odp.pfnDlgProc = PopOptionsDlgProc;
- Options_AddPage(wParam, &odp);
+ if (ServiceExists(MS_POPUP_ADDPOPUP)) {
+ OPTIONSDIALOGPAGE odp = {0};
+ odp.cbSize = sizeof(odp);
+ odp.hInstance = g_hInst;
+ odp.pszTemplate = MAKEINTRESOURCE(IDD_POPUP);
+ odp.pszTitle = (char*)szModuleName;
+ odp.pszGroup = LPGEN("PopUps");
+ odp.pfnDlgProc = PopOptionsDlgProc;
+ Options_AddPage(wParam, &odp);
+ }
return 0;
}
|