mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
fix crash if no trayicon found (#2415)
This commit is contained in:
parent
90c62c8ab8
commit
172fc79327
1 changed files with 5 additions and 2 deletions
|
|
@ -715,8 +715,11 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
trayIcon->hide();
|
||||
trayIcon->deleteLater();
|
||||
if (trayIcon) {
|
||||
trayIcon->hide();
|
||||
trayIcon->deleteLater();
|
||||
}
|
||||
|
||||
client->deleteLater();
|
||||
clientThread->wait();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue