From 6b82ad9b2c7ed5af633e972ea2b56e3a30886d20 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 5 Aug 2012 14:12:47 +0200 Subject: Ensure Rekonq (tools) menu does not crash by using a Q(Weak)Pointer --- src/webwindow/rekonqmenu.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/webwindow/rekonqmenu.h') 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 +// Qt Includes +#include + // Forward Declarations class QWidget; @@ -58,7 +61,7 @@ protected: virtual void showEvent(QShowEvent* event); private: - QWidget *m_button; + QWeakPointer m_button; }; #endif // REKONQ_MENU_H -- cgit v1.2.1