From 5cbc74cb13af5cbcc314d8220e9cc19102d48b23 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Fri, 25 Oct 2019 10:26:16 +0200 Subject: [PATCH] Don't show the context menu hint when no hotkey --- vncviewer/DesktopWindow.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 1b666f94..47fd3dbe 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -536,8 +536,11 @@ void DesktopWindow::menuOverlay(void* data) DesktopWindow *self; self = (DesktopWindow*)data; - self->setOverlay(_("Press %s to open the context menu"), - (const char*)menuKey); + + if (strcmp((const char*)menuKey, "") != 0) { + self->setOverlay(_("Press %s to open the context menu"), + (const char*)menuKey); + } } void DesktopWindow::setOverlay(const char* text, ...) -- 2.39.5