mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Old Qt, reloaded
This commit is contained in:
parent
2f33ce9788
commit
e57a2116b8
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue