Commit 91fadf03 authored by Robert Loehning's avatar Robert Loehning

ApplicationOutputPane: Add missing handling of runControl being nullptr

Change-Id: I8f7b5f90bfa7389df55b42910ba245ad78ef5bc6
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 85206e21
......@@ -582,7 +582,8 @@ void AppOutputPane::closeTab(int tabIndex, CloseTabMode closeTabMode)
m_tabWidget->removeTab(tabIndex);
delete window;
runControl->initiateFinish(); // Will self-destruct.
if (runControl)
runControl->initiateFinish(); // Will self-destruct.
m_runControlTabs.removeAt(index);
updateCloseActions();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment