forked from qt-creator/qt-creator
AppOutputPane: Ensure the window exists before flushing
Amends c1f6d70445
Change-Id: I5fbb6efced18682b62cd7c905653e23419a3a522
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -380,6 +380,7 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
|
|||||||
QTimer::singleShot(0, this, [this, rc] { runControlFinished(rc); });
|
QTimer::singleShot(0, this, [this, rc] { runControlFinished(rc); });
|
||||||
for (const RunControlTab &t : std::as_const(m_runControlTabs)) {
|
for (const RunControlTab &t : std::as_const(m_runControlTabs)) {
|
||||||
if (t.runControl == rc) {
|
if (t.runControl == rc) {
|
||||||
|
if (t.window)
|
||||||
t.window->flush();
|
t.window->flush();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user