diff options
author | hjk <hjk@qt.io> | 2016-12-05 13:14:46 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2016-12-05 12:26:25 +0000 |
commit | 4b661c3130d15742a37301d13355c96d29dbb8e3 (patch) | |
tree | 2f8e97f1d0e92c767b9ff868cc01c124ae85d7b8 | |
parent | c8215d4b6e7cb932af9f7b201f83d254f965423c (diff) | |
download | qt-creator-4b661c3130d15742a37301d13355c96d29dbb8e3.tar.gz |
ProjectWindow: Delay panel update after target adding
Parts of the machinery are not yet done when the signal
arrives, waiting for next event loop iteration suffices
to get a context enabling us to show the proper panel.
Change-Id: Icbf33a4f5a900058ecc89ac125eb43313e12b74f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
-rw-r--r-- | src/plugins/projectexplorer/targetsettingspanel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp index c62d9aa60f..69cec0e85a 100644 --- a/src/plugins/projectexplorer/targetsettingspanel.cpp +++ b/src/plugins/projectexplorer/targetsettingspanel.cpp @@ -701,7 +701,7 @@ TargetGroupItem::TargetGroupItem(const QString &displayName, Project *project) QObject::connect(project, &Project::removedTarget, d, &TargetGroupItemPrivate::handleTargetRemoved); QObject::connect(project, &Project::activeTargetChanged, - d, &TargetGroupItemPrivate::handleTargetChanged); + d, &TargetGroupItemPrivate::handleTargetChanged, Qt::QueuedConnection); } TargetGroupItem::~TargetGroupItem() |