summaryrefslogtreecommitdiff
path: root/src/webwindow/rekonqmenu.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-05 14:12:47 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:04 +0100
commit6b82ad9b2c7ed5af633e972ea2b56e3a30886d20 (patch)
tree8460d365f4e342ff1ccd8a88dd910bc628d13984 /src/webwindow/rekonqmenu.h
parentlink hovered messages restored :) (diff)
downloadrekonq-6b82ad9b2c7ed5af633e972ea2b56e3a30886d20.tar.xz
Ensure Rekonq (tools) menu does not crash by using a Q(Weak)Pointer
Diffstat (limited to 'src/webwindow/rekonqmenu.h')
-rw-r--r--src/webwindow/rekonqmenu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/webwindow/rekonqmenu.h b/src/webwindow/rekonqmenu.h
index 8bda008b..24aaba91 100644
--- a/src/webwindow/rekonqmenu.h
+++ b/src/webwindow/rekonqmenu.h
@@ -36,6 +36,9 @@
// KDE Includes
#include <KMenu>
+// Qt Includes
+#include <QWeakPointer>
+
// Forward Declarations
class QWidget;
@@ -58,7 +61,7 @@ protected:
virtual void showEvent(QShowEvent* event);
private:
- QWidget *m_button;
+ QWeakPointer<QWidget> m_button;
};
#endif // REKONQ_MENU_H