From 7847382bfe3b9204f21019933ee0a363a4693a2f Mon Sep 17 00:00:00 2001 From: thgh Date: Wed, 27 Nov 2013 23:50:31 +0100 Subject: [PATCH] Fix: hide tray icon on close --- gui/qt/lite_window.py | 3 +-- gui/qt/main_window.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/qt/lite_window.py b/gui/qt/lite_window.py index 5131ae01e..24be78ffe 100644 --- a/gui/qt/lite_window.py +++ b/gui/qt/lite_window.py @@ -355,8 +355,7 @@ class MiniWindow(QDialog): def closeEvent(self, event): g = self.geometry() self.config.set_key("winpos-lite", [g.left(),g.top(),g.width(),g.height()],True) - - super(MiniWindow, self).closeEvent(event) + self.actuator.g.closeEvent(event) qApp.quit() def set_payment_fields(self, dest_address, amount): diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 2ea8b70bc..c37e170a4 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -2137,6 +2137,7 @@ class ElectrumWindow(QMainWindow): NetworkDialog(self.wallet.network, self.config, self).do_exec() def closeEvent(self, event): + self.tray.hide() g = self.geometry() self.config.set_key("winpos-qt", [g.left(),g.top(),g.width(),g.height()], True) self.save_column_widths()