summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2015-08-03 22:31:34 +0200
committerAlbert Astals Cid <[email protected]>2015-08-03 22:31:34 +0200
commit7a4a47727a7263f48acb2667d50ac9cacd99ce3d (patch)
tree20c89ee3b21335de9b53d62c1ea85d6fa8f8f406
parent413185949e089d32a983aea3d59872e4caffdaec (diff)
Fix crash in SlideContainerAutoTest
By hold mContent in a QPointer CCMAIL: [email protected]
-rw-r--r--lib/slidecontainer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/slidecontainer.h b/lib/slidecontainer.h
index 0566e07..56d184d 100644
--- a/lib/slidecontainer.h
+++ b/lib/slidecontainer.h
@@ -22,6 +22,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// Qt
#include <QWeakPointer>
+#include <QPointer>
#include <QFrame>
#include <lib/gwenviewlib_export.h>
@@ -86,7 +87,7 @@ private Q_SLOTS:
void slotAnimFinished();
private:
- QWidget* mContent;
+ QPointer<QWidget> mContent;
QWeakPointer<QPropertyAnimation> mAnim;
bool mSlidingOut;