Disconnect setMenu on close

This commit is contained in:
RickyRister 2025-03-16 22:11:54 -07:00
parent 57b9f0e54c
commit 5f4c6b591b

View file

@ -265,6 +265,9 @@ void TabSupervisor::closeEvent(QCloseEvent *event)
for (auto tabId : gameTabsToRemove) { for (auto tabId : gameTabsToRemove) {
gameTabs.remove(tabId); gameTabs.remove(tabId);
} }
// Prevent segfaults caused by trying to set menu while the app is in the middle of destructing everything
disconnect(this, &TabSupervisor::setMenu, nullptr, nullptr);
} }
AbstractClient *TabSupervisor::getClient() const AbstractClient *TabSupervisor::getClient() const