summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/QuoteInfoDlg.cpp
diff options
context:
space:
mode:
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);