Commit 7267c95a authored by jkobus's avatar jkobus Committed by Jarek Kobus

Fix a crash on "Switch to Text Diff Editor"

Task-number: QTCREATORBUG-11448

Change-Id: Id0239d5cf71ff857ac384e18136348df92a98b74
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 25e206f5
......@@ -122,7 +122,9 @@ public:
QAction *switchAction = new QAction(actionIcon, actionToolTip, parentEditor);
parentEditor->toolBar()->addAction(switchAction);
connect(switchAction, SIGNAL(triggered()), this, SLOT(execute()));
// must be queued connection because execute() removes the editor & tool bar that the action was added to
connect(switchAction, SIGNAL(triggered()), this, SLOT(execute()), Qt::QueuedConnection);
}
void setWorkingDirectory(const QString &workingDir) { m_workingDirectory = workingDir; }
......
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