aboutsummaryrefslogtreecommitdiff
path: root/src/qt/optionsdialog.cpp
diff options
context:
space:
mode:
authorEric Shaw Jr <ericshaw.linux@gmail.com>2017-02-28 12:13:34 -0500
committerEric Shaw Jr <ericshaw.linux@gmail.com>2017-03-23 12:54:36 -0400
commit9ab9e7d1b3b4a7eac46b4e4f273c68f4e737e5f7 (patch)
treecf1b0ca40159e3a236649293fe52429c399a7068 /src/qt/optionsdialog.cpp
parenta230b0588788dbe1ac84622aea169c577b381241 (diff)
downloadbitcoin-9ab9e7d1b3b4a7eac46b4e4f273c68f4e737e5f7.tar.xz
Add a button to open the config file in a text editor
Diffstat (limited to 'src/qt/optionsdialog.cpp')
-rw-r--r--src/qt/optionsdialog.cpp12
1 files changed, 12 insertions, 0 deletions
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();