From a9eedb1d72fac66ace9d38e7fcae1e98c41aa680 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 3 Apr 2023 17:23:08 +0200 Subject: [PATCH] Add missing return statements on ignores --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 624a050..0027a36 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -63,6 +63,7 @@ void toggleGroup(std::string args) if (!PNODE->pParent) { Debug::log(LOG, "Ignoring autogroup for a solitary window"); + return; } std::deque newGroupMembers; @@ -74,6 +75,7 @@ void toggleGroup(std::string args) for (auto& n : newGroupMembers) { if (n->pWindow->m_sGroupData.pNextWindow) { Debug::log(LOG, "Ignoring autogroup for nested groups"); + return; } }