Hide tray icon in destructor, as deleting will let it linger until quit (on Ubuntu)
This commit is contained in:
parent
e9a041c536
commit
27a0ed8a0a
1 changed files with 2 additions and 0 deletions
|
@ -165,6 +165,8 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
|
||||||
|
|
||||||
BitcoinGUI::~BitcoinGUI()
|
BitcoinGUI::~BitcoinGUI()
|
||||||
{
|
{
|
||||||
|
if(trayIcon) // Hide tray icon, as deleting will let it linger until quit (on Ubuntu)
|
||||||
|
trayIcon->hide();
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
delete appMenuBar;
|
delete appMenuBar;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue