Browse Source

Bitcoin-Qt: ensure createTrayIconMenu() is always called on Mac

- this should prevent GUI issues on Mac that were observed before (disappearing
  GUI - see #1522)
- the patch ensures, that createTrayIconMenu() is always called on Mac to
  process and use our MacDockIconHandler
miguelfreitas
Philip Kaufmann 12 years ago
parent
commit
5968cf5db2
  1. 5
      src/qt/bitcoingui.cpp

5
src/qt/bitcoingui.cpp

@ -326,7 +326,6 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel) @@ -326,7 +326,6 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
// Create system tray menu (or setup the dock menu) that late to prevent users from calling actions,
// while the client has not yet fully loaded
if(trayIcon)
createTrayIconMenu();
// Keep up to date with client
@ -375,6 +374,10 @@ void BitcoinGUI::createTrayIconMenu() @@ -375,6 +374,10 @@ void BitcoinGUI::createTrayIconMenu()
{
QMenu *trayIconMenu;
#ifndef Q_OS_MAC
// return if trayIcon is unset (only on non-Mac OSes)
if (!trayIcon)
return;
trayIconMenu = new QMenu(this);
trayIcon->setContextMenu(trayIconMenu);

Loading…
Cancel
Save