diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-04-16 17:17:19 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-04-16 17:17:19 +0200 |
commit | dc3246095c89a8a5ce5f70f53cab91325925cc26 (patch) | |
tree | 81d0d6604f223ce9e144fb44cc30e4d00915f2d9 | |
parent | Move Tab Preview to WebTab (diff) | |
download | rekonq-dc3246095c89a8a5ce5f70f53cab91325925cc26.tar.xz |
Get extremely sure rekonq menu button exists when used :)
BUG: 297630
-rw-r--r-- | src/rekonqmenu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rekonqmenu.cpp b/src/rekonqmenu.cpp index 26ea6119..a5d6b1a0 100644 --- a/src/rekonqmenu.cpp +++ b/src/rekonqmenu.cpp @@ -51,6 +51,9 @@ void RekonqMenu::showEvent(QShowEvent* event) { KMenu::showEvent(event); + if (!m_button) + return; + // Adjust the position of the menu to be shown within the // rekonq window to reduce the cases that sub-menus might overlap // the right screen border. |