mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-18 08:22:15 -07:00
Disconnect setMenu on close
This commit is contained in:
parent
57b9f0e54c
commit
5f4c6b591b
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue