Update the application output tab's title

Output tab might be reused but title nevertheless be updated

Task-number: QTCREATORBUG-18109
Change-Id: I497fa3086e840131fbfcc81a5002da06ac70978f
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Vikas Pachdha
2017-05-09 10:54:38 +02:00
parent 3fe9765073
commit 3282f85f3d

View File

@@ -418,6 +418,10 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
delete tab.runControl; delete tab.runControl;
handleOldOutput(tab.window); handleOldOutput(tab.window);
tab.runControl = rc; tab.runControl = rc;
// Update the title.
m_tabWidget->setTabText(tabIndex, rc->displayName());
tab.window->setFormatter(nullptr); tab.window->setFormatter(nullptr);
tab.window->scrollToBottom(); tab.window->scrollToBottom();
if (debug) if (debug)