Skip to content

Commit

Permalink
Fix bitcoin#900 - MN tab option switch crash (bitcoin#902)
Browse files Browse the repository at this point in the history
6d1a376 Fix bitcoin#900 - MN tab option switch crash
  • Loading branch information
UdjinM6 authored and schinzelh committed Jul 6, 2016
1 parent 3c29252 commit 9cb4dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9cb4dfc

Please sign in to comment.