summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rekonqmenu.cpp3
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.