Fix #900 - MN tab option switch crash (#902)

6d1a376 Fix #900 - MN tab option switch crash
This commit is contained in:
UdjinM6 2016-07-06 18:33:12 +04:00 committed by Holger Schinzel
parent 3c29252469
commit 9cb4dfca79

View File

@ -630,7 +630,7 @@ void BitcoinGUI::setWalletActionsEnabled(bool enabled)
receiveCoinsMenuAction->setEnabled(enabled);
historyAction->setEnabled(enabled);
QSettings settings;
if (settings.value("fShowMasternodesTab").toBool()) {
if (settings.value("fShowMasternodesTab").toBool() && masternodeAction) {
masternodeAction->setEnabled(enabled);
}
encryptWalletAction->setEnabled(enabled);