From 0634b34c48e36deec4ab29689b2c64b82f41c8ab Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Wed, 19 Feb 2020 16:42:39 +0100 Subject: [PATCH] ProjectExplorer: Do not disable "Deploy" action if step list is empty We do not listen for changes to the step lists, so the state of the menu actions is not properly updated at the moment. Doing so would incur an aonnying amount of book-keeping, which is simply not necessary considering there is no harm running an empty deploy configuration. Change-Id: Ia0b0ea6369d4c17c6049872e285b2968474027e1 Reviewed-by: hjk --- src/plugins/projectexplorer/projectexplorer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 959f80f93e1..3f35d0b34e2 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -2845,8 +2845,7 @@ static bool hasDeploySettings(Project *pro) { return Utils::anyOf(SessionManager::projectOrder(pro), [](Project *project) { return project->activeTarget() - && project->activeTarget()->activeDeployConfiguration() - && !project->activeTarget()->activeDeployConfiguration()->stepList()->isEmpty(); + && project->activeTarget()->activeDeployConfiguration(); }); }