ProjectExplorer: Properly set up the output formatter

... for the app output window.

Fixes: QTCREATORBUG-24560
Change-Id: I199d7b16f445db498027094792c6cf344d920a88
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Christian Kandeler
2020-09-03 14:23:31 +02:00
parent f6e013c80e
commit 215b284666
3 changed files with 15 additions and 6 deletions

View File

@@ -154,8 +154,10 @@ void TabWidget::slotContextMenuRequested(const QPoint &pos)
AppOutputPane::RunControlTab::RunControlTab(RunControl *runControl, Core::OutputWindow *w) :
runControl(runControl), window(w)
{
if (runControl && w)
w->setLineParsers(runControl->createOutputParsers());
if (runControl && w) {
w->reset();
runControl->setupFormatter(w->outputFormatter());
}
}
AppOutputPane::AppOutputPane() :
@@ -405,7 +407,8 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
if (tab.runControl)
tab.runControl->initiateFinish();
tab.runControl = rc;
tab.window->setLineParsers(rc->createOutputParsers());
tab.window->reset();
rc->setupFormatter(tab.window->outputFormatter());
handleOldOutput(tab.window);