From 9d4779ebc00c74fadba625bdadcd73dc0e737cac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 Dec 2015 17:58:39 +0000 Subject: 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 --- plugins/Quotes/src/QuoteInfoDlg.cpp | 6 ++++-- 1 file 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); -- cgit v1.2.3