forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user