summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-20 17:58:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-20 17:58:39 +0000
commit9d4779ebc00c74fadba625bdadcd73dc0e737cac (patch)
treec9b0e51c3d22358486a560a559b74982ad762965
parent9d9a3ecede7bcc1445decb0958b02644eb65ce8d (diff)
Quotes menu items appear even for non-Quotes contacts
git-svn-id: http://svn.miranda-ng.org/main/trunk@15915 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/Quotes/src/QuoteInfoDlg.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Quotes/src/QuoteInfoDlg.cpp b/plugins/Quotes/src/QuoteInfoDlg.cpp
index e72c2043c2..17c0eea0ec 100644
--- a/plugins/Quotes/src/QuoteInfoDlg.cpp
+++ b/plugins/Quotes/src/QuoteInfoDlg.cpp
@@ -247,9 +247,11 @@ int Quotes_PrebuildContactMenu(WPARAM wp, LPARAM)
MCONTACT hContact = MCONTACT(wp);
if (NULL == hContact)
- {
return 0;
- }
+
+ char *szProto = GetContactProto(hContact);
+ if (mir_strcmp(szProto, QUOTES_MODULE_NAME))
+ return 0;
Menu_EnableItem(g_hMenuEditSettings, true);