summaryrefslogtreecommitdiff
path: root/plugins/MsgPopup/src/main.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-03-21 17:27:55 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-03-21 17:27:55 +0000
commit72fe92f13d8cc335b0a05a702b99f52811898786 (patch)
treec763c69cd804e2087ef45fa832ca4ae2e559c9ad /plugins/MsgPopup/src/main.cpp
parent95a3ccebca10bd95eeb9d783034a0235abebf933 (diff)
- MsgPopup: create popup options page only if plugin exists
- SeenPlugin: cosmetics (patch from person) git-svn-id: http://svn.miranda-ng.org/main/trunk@4150 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MsgPopup/src/main.cpp')
-rw-r--r--plugins/MsgPopup/src/main.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/plugins/MsgPopup/src/main.cpp b/plugins/MsgPopup/src/main.cpp
index ea6c69c0df..bdc1a5ab5e 100644
--- a/plugins/MsgPopup/src/main.cpp
+++ b/plugins/MsgPopup/src/main.cpp
@@ -199,16 +199,17 @@ int HookedInit(WPARAM wParam, LPARAM lParam)
int HookedOptions(WPARAM wParam, LPARAM lParam)
{
- OPTIONSDIALOGPAGE odp = {0};
- odp.cbSize = sizeof(odp);
- odp.hInstance = hInst;
- odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
- odp.ptszTitle = LPGENT("MessagePopup");
- odp.ptszGroup = LPGENT("Popups");
- odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
- odp.pfnDlgProc = OptionsDlgProc;
- Options_AddPage(wParam, &odp);
-
+ if (ServiceExists(MS_POPUP_ADDPOPUP)){
+ OPTIONSDIALOGPAGE odp = {0};
+ odp.cbSize = sizeof(odp);
+ odp.hInstance = hInst;
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
+ odp.ptszTitle = LPGENT("MessagePopup");
+ odp.ptszGroup = LPGENT("Popups");
+ odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
+ odp.pfnDlgProc = OptionsDlgProc;
+ Options_AddPage(wParam, &odp);
+ }
return 0;
}