fix yet another logic bug
This commit is contained in:
parent
1c40627570
commit
9e705cb34b
@ -65,7 +65,7 @@ protected:
|
|||||||
workspaceNode = getModel()->getRoot()->findWorkspaceByName(std::to_string(newWorkspace));
|
workspaceNode = getModel()->getRoot()->findWorkspaceByName(std::to_string(newWorkspace));
|
||||||
} while (workspaceNode != nullptr
|
} while (workspaceNode != nullptr
|
||||||
&& (workspaceNode->childCount() != 0
|
&& (workspaceNode->childCount() != 0
|
||||||
|| (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput())));
|
|| (preferredOutput != nullptr && preferredOutput != workspaceNode->findOutput())));
|
||||||
|
|
||||||
return std::to_string(newWorkspace);
|
return std::to_string(newWorkspace);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user