From 5bd37e1d069247038b60f3317720cb6825bf3f11 Mon Sep 17 00:00:00 2001 From: Matt Lowe Date: Tue, 31 Mar 2015 22:05:02 +0200 Subject: [PATCH] tray icon is now hidden and then removed I noticed that sometimes I would have lots of icons in the sys tray. I would have to mouse over them to make then be removed. This also happens with some other programs too. I have added some code to hide() the sys icon when the client is close, it seems to be helping with the issue. Hard to reproduce, might also only be a windows issue. --- cockatrice/src/window_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cockatrice/src/window_main.cpp b/cockatrice/src/window_main.cpp index ce2a5d2a..ade53419 100644 --- a/cockatrice/src/window_main.cpp +++ b/cockatrice/src/window_main.cpp @@ -425,6 +425,8 @@ MainWindow::MainWindow(QWidget *parent) MainWindow::~MainWindow() { + trayIcon->hide(); + trayIcon->deleteLater(); client->deleteLater(); clientThread->wait(); }