Commit 7081b7ae authored by Martin Kampas's avatar Martin Kampas Committed by Tobias Hunger
Browse files

PathChooser: Fix segfault on destruction

I was only able to crash it with the Mer plugin (not in tree).

Change-Id: Ie478f74c48ac6686418207fd1af8b727bcfed3cd
Reviewed-by: default avatarTobias Hunger <>
parent 708fda79
...@@ -250,6 +250,10 @@ PathChooser::PathChooser(QWidget *parent) : ...@@ -250,6 +250,10 @@ PathChooser::PathChooser(QWidget *parent) :
PathChooser::~PathChooser() 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; delete d;
} }
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