summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/QuoteInfoDlg.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-20 21:06:26 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-20 21:06:26 +0000
commitf738c6cf01e4508b3af9a7fed4be3d98f9b087a5 (patch)
tree885f75038c1d4366cba3583dc425bf0e0acaa225 /plugins/Quotes/src/QuoteInfoDlg.cpp
parentb9e79c8ac609789f7bc5d7b76f193cd9abfd7c61 (diff)
Quotes menu items appear even for non-Quotes contacts, part II
git-svn-id: http://svn.miranda-ng.org/main/trunk@15922 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/QuoteInfoDlg.cpp')
-rw-r--r--plugins/Quotes/src/QuoteInfoDlg.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Quotes/src/QuoteInfoDlg.cpp b/plugins/Quotes/src/QuoteInfoDlg.cpp
index 17c0eea0ec..51970a044f 100644
--- a/plugins/Quotes/src/QuoteInfoDlg.cpp
+++ b/plugins/Quotes/src/QuoteInfoDlg.cpp
@@ -6,7 +6,7 @@ extern HGENMENU g_hMenuOpenLogFile;
#ifdef CHART_IMPLEMENT
extern HGENMENU g_hMenuChart;
#endif
-extern HGENMENU g_hMenuRefresh;
+extern HGENMENU g_hMenuRefresh, g_hMenuRoot;
#define WINDOW_PREFIX_INFO "Quote Info"
@@ -246,13 +246,13 @@ int Quotes_PrebuildContactMenu(WPARAM wp, LPARAM)
Menu_EnableItem(g_hMenuRefresh, false);
MCONTACT hContact = MCONTACT(wp);
- if (NULL == hContact)
- return 0;
-
char *szProto = GetContactProto(hContact);
- if (mir_strcmp(szProto, QUOTES_MODULE_NAME))
+ if (mir_strcmp(szProto, QUOTES_MODULE_NAME)) {
+ Menu_ShowItem(g_hMenuRoot, false);
return 0;
+ }
+ Menu_ShowItem(g_hMenuRoot, true);
Menu_EnableItem(g_hMenuEditSettings, true);
Menu_EnableItem(g_hMenuRefresh, true);