forked from qt-creator/qt-creator
Don't crash when opening external editor help dialog.
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#define GENERALSETTINGS_H
|
#define GENERALSETTINGS_H
|
||||||
|
|
||||||
#include <coreplugin/dialogs/ioptionspage.h>
|
#include <coreplugin/dialogs/ioptionspage.h>
|
||||||
|
#include <QtCore/QPointer>
|
||||||
#include <QtGui/QWidget>
|
#include <QtGui/QWidget>
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
@@ -65,7 +66,7 @@ private slots:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::GeneralSettings *m_page;
|
Ui::GeneralSettings *m_page;
|
||||||
QWidget *m_dialog;
|
QPointer<QWidget> m_dialog;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|||||||
Reference in New Issue
Block a user