Old Qt, reloaded

This commit is contained in:
Basile Clément 2025-03-16 10:59:41 +01:00
parent 2f33ce9788
commit e57a2116b8
No known key found for this signature in database

View file

@ -251,9 +251,9 @@ void TabSupervisor::closeEvent(QCloseEvent *event)
// Close the game tabs in order to make sure they store their layout.
QSet<int> gameTabsToRemove;
for (auto it = gameTabs.keyValueBegin(), end = gameTabs.keyValueEnd(); it != end; ++it) {
if (it->second->close()) {
gameTabsToRemove.insert(it->first);
for (auto it = gameTabs.begin(), end = gameTabs.end(); it != end; ++it) {
if (it.value()->close()) {
gameTabsToRemove.insert(it.key());
} else {
event->ignore();
}