From b91314fad69a1f08baaf6f0489a3801feef3721b Mon Sep 17 00:00:00 2001 From: LordGrimmauld Date: Mon, 1 Apr 2024 12:02:08 +0200 Subject: [PATCH] fix logic oversight --- Keys/MainWindowAwareKeyListener.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Keys/MainWindowAwareKeyListener.h b/Keys/MainWindowAwareKeyListener.h index 46bbcd8..5f67088 100644 --- a/Keys/MainWindowAwareKeyListener.h +++ b/Keys/MainWindowAwareKeyListener.h @@ -64,7 +64,7 @@ protected: newWorkspace++; workspaceNode = getModel()->getRoot()->findWorkspaceByName(std::to_string(newWorkspace)); } while (workspaceNode != nullptr && workspaceNode->childCount() != 0 - && (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput())); + || (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput())); return std::to_string(newWorkspace); }