From 3282f85f3db743aa96e4d3410e4737284a9b566c Mon Sep 17 00:00:00 2001 From: Vikas Pachdha Date: Tue, 9 May 2017 10:54:38 +0200 Subject: [PATCH] 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 --- src/plugins/projectexplorer/appoutputpane.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp index 4be4b6697de..b43f3f3804b 100644 --- a/src/plugins/projectexplorer/appoutputpane.cpp +++ b/src/plugins/projectexplorer/appoutputpane.cpp @@ -418,6 +418,10 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc) delete tab.runControl; handleOldOutput(tab.window); tab.runControl = rc; + + // Update the title. + m_tabWidget->setTabText(tabIndex, rc->displayName()); + tab.window->setFormatter(nullptr); tab.window->scrollToBottom(); if (debug)