forked from qt-creator/qt-creator
PathChooser: Fix segfault on destruction
I was only able to crash it with the Mer plugin (not in tree). Change-Id: Ie478f74c48ac6686418207fd1af8b727bcfed3cd Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Tobias Hunger
parent
708fda792e
commit
7081b7aecb
@@ -250,6 +250,10 @@ PathChooser::PathChooser(QWidget *parent) :
|
||||
|
||||
PathChooser::~PathChooser()
|
||||
{
|
||||
// Since it is our focusProxy it can receive focus-out and emit the signal
|
||||
// even when the possible ancestor-receiver is in mid of its destruction.
|
||||
disconnect(d->m_lineEdit, &QLineEdit::editingFinished, this, &PathChooser::editingFinished);
|
||||
|
||||
delete d;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user