aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2019-10-25 10:26:16 +0200
committerSamuel Mannehed <samuel@cendio.se>2019-10-25 10:26:16 +0200
commit5cbc74cb13af5cbcc314d8220e9cc19102d48b23 (patch)
tree2c2ab1e65953a148c25f0879ae2c861f040ccfd7 /vncviewer/DesktopWindow.cxx
parent91a02fe526481063d1d277f4ce8b8a10c4182c8c (diff)
downloadtigervnc-5cbc74cb13af5cbcc314d8220e9cc19102d48b23.tar.gz
tigervnc-5cbc74cb13af5cbcc314d8220e9cc19102d48b23.zip
Don't show the context menu hint when no hotkey
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r--vncviewer/DesktopWindow.cxx7
1 files 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, ...)