diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-11 20:38:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-11 20:38:14 +0000 |
commit | fe72fbef65b67f80d7577bf412a0993ed78f228e (patch) | |
tree | 42f4d0091781d5dee3c9cc71aea95b6932c288aa /plugins/WebView | |
parent | 2123db77ba3caeae5f04a9d3c807b3bdc3d73076 (diff) |
correct ServiceExists call for popups
git-svn-id: http://svn.miranda-ng.org/main/trunk@9435 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WebView')
-rw-r--r-- | plugins/WebView/src/webview.cpp | 2 | ||||
-rw-r--r-- | plugins/WebView/src/webview_alerts.cpp | 2 | ||||
-rw-r--r-- | plugins/WebView/src/webview_opts.cpp | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/WebView/src/webview.cpp b/plugins/WebView/src/webview.cpp index 19fdc8e55d..3329dcfe3a 100644 --- a/plugins/WebView/src/webview.cpp +++ b/plugins/WebView/src/webview.cpp @@ -313,7 +313,7 @@ static int OptInitialise(WPARAM wParam, LPARAM lParam) Options_AddPage(wParam, &odp);
// if popup service exists
- if ((ServiceExists(MS_POPUP_ADDPOPUP))) {
+ if ((ServiceExists(MS_POPUP_ADDPOPUPT))) {
odp.pszTemplate = MAKEINTRESOURCEA(IDD_POPUP);
odp.ptszGroup = LPGENT("Popups");
odp.pfnDlgProc = DlgPopUpOpts;
diff --git a/plugins/WebView/src/webview_alerts.cpp b/plugins/WebView/src/webview_alerts.cpp index 2b9c921b6b..435ea79bc4 100644 --- a/plugins/WebView/src/webview_alerts.cpp +++ b/plugins/WebView/src/webview_alerts.cpp @@ -191,7 +191,7 @@ int PopupAlert(WPARAM hContact, LPARAM lParam) ppd.PluginWindowProc = NULL;
ppd.iSeconds = db_get_dw(NULL, MODULENAME, POP_DELAY_KEY, 0);
- if (ServiceExists(MS_POPUP_ADDPOPUP))
+ if (ServiceExists(MS_POPUP_ADDPOPUPT))
CallService(MS_POPUP_ADDPOPUP, (WPARAM)&ppd, 0);
return 0;
diff --git a/plugins/WebView/src/webview_opts.cpp b/plugins/WebView/src/webview_opts.cpp index f49ca27613..9e7149908e 100644 --- a/plugins/WebView/src/webview_opts.cpp +++ b/plugins/WebView/src/webview_opts.cpp @@ -1145,11 +1145,11 @@ INT_PTR CALLBACK DlgProcOpt(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPara }
else {
CheckDlgButton(hwndDlg, IDC_SUPPRESS, BST_UNCHECKED);
- if ((ServiceExists(MS_POPUP_ADDPOPUP) != 0))
+ if ((ServiceExists(MS_POPUP_ADDPOPUPT) != 0))
EnableWindow(GetDlgItem(hwndDlg, IDC_ERROR_POPUP), 1);
}
- if (ServiceExists(MS_POPUP_ADDPOPUP) == 0)
+ if (ServiceExists(MS_POPUP_ADDPOPUPT) == 0)
EnableWindow(GetDlgItem(hwndDlg, IDC_ERROR_POPUP), 0);
if ( db_get_b(NULL, MODULENAME, UPDATE_ONSTART_KEY, 0)) {
@@ -1222,7 +1222,7 @@ INT_PTR CALLBACK DlgProcOpt(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPara break;
case IDC_SUPPRESS:
- if ((ServiceExists(MS_POPUP_ADDPOPUP) != 0))
+ if ((ServiceExists(MS_POPUP_ADDPOPUPT) != 0))
EnableWindow(GetDlgItem(hwndDlg, IDC_ERROR_POPUP), (!(IsDlgButtonChecked(hwndDlg, IDC_SUPPRESS))));
break;
|