aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@qt.io>2017-12-04 19:12:01 +0100
committerRobert Loehning <robert.loehning@qt.io>2017-12-05 13:54:47 +0000
commit91fadf03d03e8250d93cdd31ad929a7399bb7959 (patch)
treee7eda978d0fbc108b8f78f230c711fb12bacb3e1
parent85206e216afbb132d41bf7101fd9dc6446874ee2 (diff)
ApplicationOutputPane: Add missing handling of runControl being nullptr
Change-Id: I8f7b5f90bfa7389df55b42910ba245ad78ef5bc6 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
-rw-r--r--src/plugins/projectexplorer/appoutputpane.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/appoutputpane.cpp b/src/plugins/projectexplorer/appoutputpane.cpp
index 73b28c176e..a5f1d35a75 100644
--- a/src/plugins/projectexplorer/appoutputpane.cpp
+++ b/src/plugins/projectexplorer/appoutputpane.cpp
@@ -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();