aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/appoutputpane.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2023-07-04 10:55:37 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2023-07-04 12:22:22 +0000
commit6e16512eba2c39baa714fa253843b2171ba24f47 (patch)
tree949b10c9cb13e3549f90ea779e0052624d03e064 /src/plugins/projectexplorer/appoutputpane.cpp
parent5f5a16628ba6a46118b72947d86c11051008e2ee (diff)
AppOutputPane: Ensure the window exists before flushing
Amends c1f6d7044589f7842d19fc7b44574152ce72a20f Change-Id: I5fbb6efced18682b62cd7c905653e23419a3a522 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/projectexplorer/appoutputpane.cpp')
-rw-r--r--src/plugins/projectexplorer/appoutputpane.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp
index 099430b94a..c69aeaf828 100644
--- a/src/plugins/projectexplorer/appoutputpane.cpp
+++ b/src/plugins/projectexplorer/appoutputpane.cpp
@@ -380,7 +380,8 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
QTimer::singleShot(0, this, [this, rc] { runControlFinished(rc); });
for (const RunControlTab &t : std::as_const(m_runControlTabs)) {
if (t.runControl == rc) {
- t.window->flush();
+ if (t.window)
+ t.window->flush();
break;
}
}