aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-02-19 12:07:07 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2012-02-19 12:07:07 +0100
commit27a0ed8a0a0c7e53a62f2dcde87db68bc182b6c0 (patch)
tree8c442a683e1a566154e3610ca8a8d8a568a515c1 /src/qt
parente9a041c536f1f46d218127bad1989be58f095680 (diff)
Hide tray icon in destructor, as deleting will let it linger until quit (on Ubuntu)
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/bitcoingui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index c95afdcef3..65753a1839 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -165,6 +165,8 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
BitcoinGUI::~BitcoinGUI()
{
+ if(trayIcon) // Hide tray icon, as deleting will let it linger until quit (on Ubuntu)
+ trayIcon->hide();
#ifdef Q_WS_MAC
delete appMenuBar;
#endif