diff options
author | sinetek <pitwuu@gmail.com> | 2014-11-08 13:48:35 -0500 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-11-10 20:50:41 +0100 |
commit | d52f07260582f7b1ffef05953bcc821bcee8af61 (patch) | |
tree | 289b96eafff753b964d23ada8576a6e603598305 /src/qt/optionsdialog.cpp | |
parent | af3ec17f6794eeebb23f9089ae00edb030e5d619 (diff) |
Don't show wallet options in the preferences menu when running with -disablewallet
Diffstat (limited to 'src/qt/optionsdialog.cpp')
-rw-r--r-- | src/qt/optionsdialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp index 67be174d55..f5a0759c92 100644 --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -30,7 +30,7 @@ #include <QMessageBox> #include <QTimer> -OptionsDialog::OptionsDialog(QWidget *parent) : +OptionsDialog::OptionsDialog(QWidget *parent, bool enableWallet) : QDialog(parent), ui(new Ui::OptionsDialog), model(0), @@ -66,6 +66,11 @@ OptionsDialog::OptionsDialog(QWidget *parent) : ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabWindow)); #endif + /* remove Wallet tab in case of -disablewallet */ + if (!enableWallet) { + ui->tabWidget->removeTab(ui->tabWidget->indexOf(ui->tabWallet)); + } + /* Display elements init */ QDir translations(":translations"); ui->lang->addItem(QString("(") + tr("default") + QString(")"), QVariant("")); |