mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Compat with old Qt versions
This commit is contained in:
parent
34a855f947
commit
2f33ce9788
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.
|
||||
QSet<int> gameTabsToRemove;
|
||||
for (auto [tabId, tab] : gameTabs.asKeyValueRange()) {
|
||||
if (tab->close()) {
|
||||
gameTabsToRemove.insert(tabId);
|
||||
for (auto it = gameTabs.keyValueBegin(), end = gameTabs.keyValueEnd(); it != end; ++it) {
|
||||
if (it->second->close()) {
|
||||
gameTabsToRemove.insert(it->first);
|
||||
} else {
|
||||
event->ignore();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue