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