mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-25 00:11:28 +02:00
qt: Add null check in setClientModel(0)
Don't clear tray icon menu if it was never created. Necessary precaution after #4649.
This commit is contained in:
parent
d49b0876a4
commit
f30801afbd
@ -455,10 +455,13 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
|
||||
} else {
|
||||
// Disable possibility to show main window via action
|
||||
toggleHideAction->setEnabled(false);
|
||||
if(trayIconMenu)
|
||||
{
|
||||
// Disable context menu on tray icon
|
||||
trayIconMenu->clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
bool BitcoinGUI::addWallet(const QString& name, WalletModel *walletModel)
|
||||
|
Loading…
x
Reference in New Issue
Block a user