Fix #900 - MN tab option switch crash

This commit is contained in:
UdjinM6 2016-07-06 17:00:46 +03:00
parent 025f0901c4
commit 6d1a376659

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);