ProjectExplorer: Use runnable contents for appoutputpane re-use

Change-Id: I6dd4b9258321a23462bb6488b132aa9f3d1ed5c2
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
hjk
2016-02-01 14:30:13 +01:00
parent e4dca97fc6
commit 2fd286cc93
10 changed files with 87 additions and 8 deletions

View File

@@ -398,7 +398,7 @@ void AppOutputPane::createNewOutputWindow(RunControl *rc)
const int size = m_runControlTabs.size();
for (int i = 0; i < size; i++) {
RunControlTab &tab =m_runControlTabs[i];
if (tab.runControl->sameRunConfiguration(rc) && !tab.runControl->isRunning()) {
if (rc->canReUseOutputPane(tab.runControl)) {
// Reuse this tab
delete tab.runControl;
tab.runControl = rc;