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. // Close the game tabs in order to make sure they store their layout.
QSet<int> gameTabsToRemove; QSet<int> gameTabsToRemove;
for (auto it = gameTabs.keyValueBegin(), end = gameTabs.keyValueEnd(); it != end; ++it) { for (auto it = gameTabs.begin(), end = gameTabs.end(); it != end; ++it) {
if (it->second->close()) { if (it.value()->close()) {
gameTabsToRemove.insert(it->first); gameTabsToRemove.insert(it.key());
} else { } else {
event->ignore(); event->ignore();
} }