Commit 0a67770d authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

BuildManager: Prevent start of a new build queue while queuing

ProjectExplorerPlugin::runRunConfiguration assumes that if queue()
returns a number larger than 0 then it is not finished yet.
Ensure this by delaying the finished() and buildQueueFinished()

Done-with: Daniel Teske <>
Change-Id: I73c88772add919ac81170c77b2be1a9c79d27065
Reviewed-by: default avatarDaniel Teske <>
parent fd5de10f
......@@ -121,7 +121,7 @@ BuildManager::BuildManager(QObject *parent, QAction *cancelBuildAction)
d = new BuildManagerPrivate;
connect(&d->m_watcher, SIGNAL(finished()),
this, SLOT(nextBuildQueue()));
this, SLOT(nextBuildQueue()), Qt::QueuedConnection);
connect(&d->m_watcher, SIGNAL(progressValueChanged(int)),
this, SLOT(progressChanged()));
......@@ -1001,7 +1001,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
connect(buildManager, SIGNAL(buildStateChanged(ProjectExplorer::Project*)),
this, SLOT(buildStateChanged(ProjectExplorer::Project*)));
connect(buildManager, SIGNAL(buildQueueFinished(bool)),
this, SLOT(buildQueueFinished(bool)));
this, SLOT(buildQueueFinished(bool)), Qt::QueuedConnection);
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