Add missing return statements on ignores

This commit is contained in:
ItsDrike 2023-04-03 17:23:08 +02:00
parent 9e665e359c
commit a9eedb1d72
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -63,6 +63,7 @@ void toggleGroup(std::string args)
if (!PNODE->pParent) { if (!PNODE->pParent) {
Debug::log(LOG, "Ignoring autogroup for a solitary window"); Debug::log(LOG, "Ignoring autogroup for a solitary window");
return;
} }
std::deque<SDwindleNodeData*> newGroupMembers; std::deque<SDwindleNodeData*> newGroupMembers;
@ -74,6 +75,7 @@ void toggleGroup(std::string args)
for (auto& n : newGroupMembers) { for (auto& n : newGroupMembers) {
if (n->pWindow->m_sGroupData.pNextWindow) { if (n->pWindow->m_sGroupData.pNextWindow) {
Debug::log(LOG, "Ignoring autogroup for nested groups"); Debug::log(LOG, "Ignoring autogroup for nested groups");
return;
} }
} }