Do not crash when closing editor while diagnostic tool tip is shown

Make sure that the tool tip instance is reset to nullptr even if it was
closed automatically.

Change-Id: I3c718634d90dddc5822a634d082c263f51901684
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
Eike Ziller
2016-05-09 10:57:52 +02:00
parent d8fbc76f08
commit 766d154f2d

View File

@@ -30,6 +30,7 @@
#include <QSharedPointer>
#include <QObject>
#include <QPointer>
#include <QTimer>
#include <QRect>
@@ -107,7 +108,7 @@ private:
void showTip();
void hideTipWithDelay();
Internal::QTipLabel *m_tip;
QPointer<Internal::QTipLabel> m_tip;
QWidget *m_widget;
QRect m_rect;
QTimer m_showTimer;