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:
Martin Kampas
2015-11-20 12:41:24 +01:00
committed by Tobias Hunger
parent 708fda792e
commit 7081b7aecb

View File

@@ -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;
}