diff --git a/cockatrice/src/client/tabs/tab_supervisor.cpp b/cockatrice/src/client/tabs/tab_supervisor.cpp index 8ba5d791a..532576d60 100644 --- a/cockatrice/src/client/tabs/tab_supervisor.cpp +++ b/cockatrice/src/client/tabs/tab_supervisor.cpp @@ -265,6 +265,9 @@ void TabSupervisor::closeEvent(QCloseEvent *event) for (auto tabId : gameTabsToRemove) { 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