forked from qt-creator/qt-creator
Editor: Disconnect private editor class when destructing.
Task-number: QTCREATORBUG-15010 Change-Id: Iae3fef08fe0ed42a0eb81cc724f8e5250aedc80d Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -255,10 +255,7 @@ class TextEditorWidgetPrivate : public QObject
|
||||
{
|
||||
public:
|
||||
TextEditorWidgetPrivate(TextEditorWidget *parent);
|
||||
~TextEditorWidgetPrivate()
|
||||
{
|
||||
delete m_toolBar;
|
||||
}
|
||||
~TextEditorWidgetPrivate();
|
||||
|
||||
void setupDocumentSignals();
|
||||
void updateLineSelectionColor();
|
||||
@@ -562,6 +559,12 @@ TextEditorWidgetPrivate::TextEditorWidgetPrivate(TextEditorWidget *parent)
|
||||
m_extraSelections.reserve(NExtraSelectionKinds);
|
||||
}
|
||||
|
||||
TextEditorWidgetPrivate::~TextEditorWidgetPrivate()
|
||||
{
|
||||
q->disconnect(this);
|
||||
delete m_toolBar;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
using namespace Internal;
|
||||
|
||||
Reference in New Issue
Block a user