Browse Source

qt: Add null check in setClientModel(0)

Don't clear tray icon menu if it was never created.
Necessary precaution after #4649.
0.10
Wladimir J. van der Laan 10 years ago
parent
commit
f30801afbd
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 7
      src/qt/bitcoingui.cpp

7
src/qt/bitcoingui.cpp

@ -455,8 +455,11 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel) @@ -455,8 +455,11 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
} else {
// Disable possibility to show main window via action
toggleHideAction->setEnabled(false);
// Disable context menu on tray icon
trayIconMenu->clear();
if(trayIconMenu)
{
// Disable context menu on tray icon
trayIconMenu->clear();
}
}
}

Loading…
Cancel
Save