Hide tray icon in destructor, as deleting will let it linger until quit (on Ubuntu)

This commit is contained in:
Wladimir J. van der Laan 2012-02-19 12:07:07 +01:00
parent e9a041c536
commit 27a0ed8a0a

View file

@ -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