forked from qt-creator/qt-creator
AbstractRemoteLinuxDeployStep: Make recipe return GroupItem
There is no need for extra nested Group item in deployRecipe() overloads, as sometimes it's just one task, like in case of QdbStopApplicationStep or CustomCommandDeployStep. Change-Id: I89cdb703c24198f3cbdfb17d0317e40f1929c376 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -117,7 +117,7 @@ void AbstractRemoteLinuxDeployStep::doRun()
|
||||
|
||||
QTC_ASSERT(!d->m_taskTree, return);
|
||||
|
||||
d->m_taskTree.reset(new TaskTree(runRecipe()));
|
||||
d->m_taskTree.reset(new TaskTree({runRecipe()}));
|
||||
const auto endHandler = [this] {
|
||||
d->m_taskTree.release()->deleteLater();
|
||||
handleFinished();
|
||||
@@ -185,7 +185,7 @@ bool AbstractRemoteLinuxDeployStep::isDeploymentNecessary() const
|
||||
return true;
|
||||
}
|
||||
|
||||
Group AbstractRemoteLinuxDeployStep::runRecipe()
|
||||
GroupItem AbstractRemoteLinuxDeployStep::runRecipe()
|
||||
{
|
||||
const auto onSetup = [this] {
|
||||
const auto canDeploy = isDeploymentPossible();
|
||||
|
||||
Reference in New Issue
Block a user