mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-13 19:45:46 -05:00
fix crash if no trayicon found (#2415)
This commit is contained in:
@@ -715,8 +715,11 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
trayIcon->hide();
|
||||
trayIcon->deleteLater();
|
||||
if (trayIcon) {
|
||||
trayIcon->hide();
|
||||
trayIcon->deleteLater();
|
||||
}
|
||||
|
||||
client->deleteLater();
|
||||
clientThread->wait();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user