don't close replay tabs and do close message tabs on disconnect

This commit is contained in:
RickyRister 2025-01-11 23:22:52 -08:00
parent 3a4ec1062b
commit 352c5f1e36

View file

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