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 <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-02-19 16:42:39 +01:00
parent 193fa40b34
commit 0634b34c48

View File

@@ -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();
});
}