summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectexplorer.cpp
diff options
context:
space:
mode:
authorMarcus Tillmanns <marcus.tillmanns@qt.io>2023-02-27 11:06:14 +0100
committerMarcus Tillmanns <marcus.tillmanns@qt.io>2023-02-27 10:41:05 +0000
commit3e73fe302e65af7860f47ec22153e2c0479f99ff (patch)
tree135bbfb6f586a2bc25eebc1eb834db1ba35e3e30 /src/plugins/projectexplorer/projectexplorer.cpp
parentd4ac8aeaa6063554fdef51c81a752417b0fd0de7 (diff)
downloadqt-creator-3e73fe302e65af7860f47ec22153e2c0479f99ff.tar.gz
Terminal: Coverity warning fixes
Change-Id: If96291ff6df97f7e85840eb0951cc3f4abfab0f6 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectexplorer.cpp')
-rw-r--r--src/plugins/projectexplorer/projectexplorer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index 2402a8004c..a260d211ab 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -3813,8 +3813,10 @@ void ProjectExplorerPluginPrivate::openTerminalHere(const EnvironmentGetter &env
return;
BuildConfiguration *bc = activeBuildConfiguration(ProjectTree::projectForNode(currentNode));
- if (!bc)
+ if (!bc) {
Terminal::Hooks::instance().openTerminalHook()({{}, currentNode->directory(), environment});
+ return;
+ }
IDeviceConstPtr buildDevice = BuildDeviceKitAspect::device(bc->target()->kit());