Commit 766d154f authored by Eike Ziller's avatar Eike Ziller
Browse files

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: default avatarhjk <hjk@theqtcompany.com>
Reviewed-by: Nikolai Kosjar's avatarNikolai Kosjar <nikolai.kosjar@qt.io>
parent d8fbc76f
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment