changeset 20994:dd1dcef1ee33

prevent terminal context menu from exceeding the window * QTerminal.h: use exec () instead of show () for showing the context menu
author Torsten <ttl@justmail.de>
date Mon, 28 Dec 2015 12:10:05 +0100
parents 31a12af0aaaf
children aab7a3c7168e
files libgui/qterminal/libqterminal/QTerminal.h
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/QTerminal.h	Mon Dec 28 09:06:51 2015 +0100
+++ b/libgui/qterminal/libqterminal/QTerminal.h	Mon Dec 28 12:10:05 2015 +0100
@@ -109,8 +109,7 @@
     _paste_action->setEnabled (cb->text().length() > 0);
     _copy_action->setEnabled (selectedText().length() > 0);
 
-    _contextMenu->move (mapToGlobal (at));
-    _contextMenu->show ();
+    _contextMenu->exec (mapToGlobal (at));
   }
 
   void notice_settings (const QSettings *settings);