forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user