From 466eb1d30f2258912ff9045529ccf3a4a91feb22 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 15 Feb 2019 12:25:54 +0100 Subject: [PATCH] BuildManager: Remove busy loop This code froze the entire UI for the time that a build step took to cancel, for no apparent reason. Change-Id: I40f20b9875d92e8919debaeac2021d389b6b6c28 Reviewed-by: hjk --- src/plugins/projectexplorer/buildmanager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/projectexplorer/buildmanager.cpp b/src/plugins/projectexplorer/buildmanager.cpp index 544677517ae..6018659c7e4 100644 --- a/src/plugins/projectexplorer/buildmanager.cpp +++ b/src/plugins/projectexplorer/buildmanager.cpp @@ -193,8 +193,6 @@ void BuildManager::cancel() return; d->m_canceling = true; d->m_currentBuildStep->cancel(); - while (d->m_canceling) - QApplication::processEvents(QEventLoop::ExcludeUserInputEvents); // TODO: Is this really necessary? } }