Don't show wallet options in the preferences menu when running with -disablewallet

This commit is contained in:
sinetek
2014-11-08 13:48:35 -05:00
committed by Wladimir J. van der Laan
parent af3ec17f67
commit d52f072605
4 changed files with 11 additions and 5 deletions

View File

@@ -103,9 +103,9 @@ BitcoinGUI::BitcoinGUI(const NetworkStyle *networkStyle, QWidget *parent) :
QString windowTitle = tr("Bitcoin Core") + " - ";
#ifdef ENABLE_WALLET
/* if compiled with wallet support, -disablewallet can still disable the wallet */
bool enableWallet = !GetBoolArg("-disablewallet", false);
enableWallet = !GetBoolArg("-disablewallet", false);
#else
bool enableWallet = false;
enableWallet = false;
#endif // ENABLE_WALLET
if(enableWallet)
{
@@ -554,7 +554,7 @@ void BitcoinGUI::optionsClicked()
if(!clientModel || !clientModel->getOptionsModel())
return;
OptionsDialog dlg(this);
OptionsDialog dlg(this, enableWallet);
dlg.setModel(clientModel->getOptionsModel());
dlg.exec();
}