ApplicationOutputPane: Add missing handling of runControl being nullptr

Change-Id: I8f7b5f90bfa7389df55b42910ba245ad78ef5bc6
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Robert Loehning
2017-12-04 19:12:01 +01:00
parent 85206e216a
commit 91fadf03d0

View File

@@ -582,7 +582,8 @@ void AppOutputPane::closeTab(int tabIndex, CloseTabMode closeTabMode)
m_tabWidget->removeTab(tabIndex); m_tabWidget->removeTab(tabIndex);
delete window; delete window;
runControl->initiateFinish(); // Will self-destruct. if (runControl)
runControl->initiateFinish(); // Will self-destruct.
m_runControlTabs.removeAt(index); m_runControlTabs.removeAt(index);
updateCloseActions(); updateCloseActions();