forked from qt-creator/qt-creator
OutputFormatter: Take ownership of the line parsers
For symmetry with IOutputParser. Task-number: QTCREATORBUG-22665 Change-Id: I92e93b32e87ff4f3fa163a2d2fe13768e56bfa24 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -154,7 +154,7 @@ AppOutputPane::RunControlTab::RunControlTab(RunControl *runControl, Core::Output
|
||||
runControl(runControl), window(w)
|
||||
{
|
||||
if (runControl && w)
|
||||
w->setLineParsers(runControl->outputParsers());
|
||||
w->setLineParsers(runControl->createOutputParsers());
|
||||
}
|
||||
|
||||
AppOutputPane::AppOutputPane() :
|
||||
@@ -404,7 +404,7 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
|
||||
if (tab.runControl)
|
||||
tab.runControl->initiateFinish();
|
||||
tab.runControl = rc;
|
||||
tab.window->setLineParsers(rc->outputParsers());
|
||||
tab.window->setLineParsers(rc->createOutputParsers());
|
||||
|
||||
handleOldOutput(tab.window);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user