remove break statement when closing views

it's possible that multiple views need to be closed
this is an oversight of #4570
This commit is contained in:
ebbit1q 2026-04-11 18:45:25 +02:00
parent f56b672307
commit 80719febaf

View file

@ -60,7 +60,6 @@ void PlayerEventHandler::eventShuffle(const Event_Shuffle &event)
// we want to close empty views as well // we want to close empty views as well
if (length == 0 || length > absStart) { // note this assumes views always start at the top of the library if (length == 0 || length > absStart) { // note this assumes views always start at the top of the library
view->close(); view->close();
break;
} }
} else { } else {
qWarning() << zone->getName() << "of" << player->getPlayerInfo()->getName() << "holds empty zoneview!"; qWarning() << zone->getName() << "of" << player->getPlayerInfo()->getName() << "holds empty zoneview!";