diff options
author | George Hazan <george.hazan@gmail.com> | 2015-12-20 17:58:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-12-20 17:58:39 +0000 |
commit | 9d4779ebc00c74fadba625bdadcd73dc0e737cac (patch) | |
tree | c9b0e51c3d22358486a560a559b74982ad762965 /plugins/Quotes | |
parent | 9d9a3ecede7bcc1445decb0958b02644eb65ce8d (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
Diffstat (limited to 'plugins/Quotes')
-rw-r--r-- | plugins/Quotes/src/QuoteInfoDlg.cpp | 6 |
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);
|