From 6fe04a6f68536f3e1440f30d01370363c67c8221 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 16 Apr 2012 17:17:19 +0200 Subject: Get extremely sure rekonq menu button exists when used :) BUG: 297630 Backported from master branch --- src/rekonqmenu.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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. -- cgit v1.2.1