summaryrefslogtreecommitdiff
path: root/protocols/WebView/src/webview_alerts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-05 21:10:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-05 21:10:22 +0300
commitd9fddc0cfa9066eb1b5ad3f4807b37426ae6ca88 (patch)
treef09baaf9b91477d009cedc5bd77449b0fa3e3af7 /protocols/WebView/src/webview_alerts.cpp
parent8a1ff32e54b39ceef22df61bda17bbfda94918fc (diff)
Popup:
- wiping out checks for service presence; - code cleaning
Diffstat (limited to 'protocols/WebView/src/webview_alerts.cpp')
-rw-r--r--protocols/WebView/src/webview_alerts.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/WebView/src/webview_alerts.cpp b/protocols/WebView/src/webview_alerts.cpp
index 1b068f099e..776b100181 100644
--- a/protocols/WebView/src/webview_alerts.cpp
+++ b/protocols/WebView/src/webview_alerts.cpp
@@ -142,10 +142,7 @@ int PopupAlert(WPARAM hContact, LPARAM lParam)
ppd.PluginWindowProc = nullptr;
ppd.iSeconds = g_plugin.getDword(POP_DELAY_KEY, 0);
-
- if (ServiceExists(MS_POPUP_ADDPOPUPW))
- CallService(MS_POPUP_ADDPOPUPW, (WPARAM)&ppd, 0);
-
+ PUAddPopupW(&ppd);
return 0;
}
@@ -184,7 +181,7 @@ int ErrorMsgs(WPARAM wParam, LPARAM lParam)
return 0;
wchar_t *ptszContactName = Clist_GetContactDisplayName(hContact);
- if (ServiceExists(MS_POPUP_ADDPOPUPW) && g_plugin.getByte(ERROR_POPUP_KEY, 0)) {
+ if (g_plugin.getByte(ERROR_POPUP_KEY, 0)) {
mir_snwprintf(newdisplaytext, L"%s\n%s", ptszContactName, displaytext);
PUShowMessageW(newdisplaytext, SM_WARNING);
}