From 9ab9e7d1b3b4a7eac46b4e4f273c68f4e737e5f7 Mon Sep 17 00:00:00 2001 From: Eric Shaw Jr Date: Tue, 28 Feb 2017 12:13:34 -0500 Subject: Add a button to open the config file in a text editor --- src/qt/optionsdialog.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/qt/optionsdialog.cpp') diff --git a/src/qt/optionsdialog.cpp b/src/qt/optionsdialog.cpp index 7ff00b1e9e..efb25aaf18 100644 --- a/src/qt/optionsdialog.cpp +++ b/src/qt/optionsdialog.cpp @@ -232,6 +232,18 @@ void OptionsDialog::on_resetButton_clicked() } } +void OptionsDialog::on_openBitcoinConfButton_clicked() +{ + /* explain the purpose of the config file */ + QMessageBox::information(this, tr("Configuration options"), + tr("The configuration file is used to specify advanced user options which override GUI settings. " + "Additionally, any command-line options will override this configuration file.")); + + /* show an error if there was some problem opening the file */ + if (!GUIUtil::openBitcoinConf()) + QMessageBox::critical(this, tr("Error"), tr("The configuration file could not be opened.")); +} + void OptionsDialog::on_okButton_clicked() { mapper->submit(); -- cgit v1.2.3