mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01: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,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…
Reference in New Issue
Block a user