aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/appoutputpane.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2024-04-17 12:48:28 +0200
committerEike Ziller <eike.ziller@qt.io>2024-04-17 13:29:02 +0200
commit0fe73503688c6c4c256ffa39f1a30c329a5ca2e7 (patch)
treef35e6772a7742155ec62c084dd607a3027216795 /src/plugins/projectexplorer/appoutputpane.cpp
parent1f162377369d968cd7740d751bc41047591dbe0d (diff)
parentd4d8ea98b75545f99477d2b6a4c6aaaa1b354891 (diff)
Merge remote-tracking branch 'origin/13.0'
Diffstat (limited to 'src/plugins/projectexplorer/appoutputpane.cpp')
-rw-r--r--src/plugins/projectexplorer/appoutputpane.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp
index 742e6df5e4..3d48946024 100644
--- a/src/plugins/projectexplorer/appoutputpane.cpp
+++ b/src/plugins/projectexplorer/appoutputpane.cpp
@@ -391,14 +391,14 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
const CommandLine thisCommand = rc->commandLine();
const FilePath thisWorkingDirectory = rc->workingDirectory();
const Environment thisEnvironment = rc->environment();
- const auto tab = std::find_if(m_runControlTabs.begin(), m_runControlTabs.end(),
- [&](const RunControlTab &tab) {
- if (!tab.runControl || tab.runControl->isRunning() || tab.runControl->isStarting())
- return false;
- return thisCommand == tab.runControl->commandLine()
- && thisWorkingDirectory == tab.runControl->workingDirectory()
- && thisEnvironment == tab.runControl->environment();
- });
+ const auto tab = std::find_if(
+ m_runControlTabs.begin(), m_runControlTabs.end(), [&](const RunControlTab &tab) {
+ if (!tab.runControl || !tab.runControl->isStopped())
+ return false;
+ return thisCommand == tab.runControl->commandLine()
+ && thisWorkingDirectory == tab.runControl->workingDirectory()
+ && thisEnvironment == tab.runControl->environment();
+ });
if (tab != m_runControlTabs.end()) {
// Reuse this tab
if (tab->runControl)