don't close replay tabs and do close message tabs on disconnect (#5450)

This commit is contained in:
RickyRister 2025-01-11 23:47:36 -08:00 committed by GitHub
parent a6fc88c79a
commit 3f41e5dd77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -316,10 +316,10 @@ void TabSupervisor::stop()
} }
gameTabs.clear(); gameTabs.clear();
for (const auto tab : replayTabs) { for (auto i = messageTabs.cbegin(), end = messageTabs.cend(); i != end; ++i) {
tabsToDelete << tab; tabsToDelete << i.value();
} }
replayTabs.clear(); messageTabs.clear();
for (const auto tab : tabsToDelete) { for (const auto tab : tabsToDelete) {
tab->closeRequest(true); tab->closeRequest(true);