Add a button to open the config file in a text editor

This commit is contained in:
Eric Shaw Jr
2017-02-28 12:13:34 -05:00
committed by lateminer
parent 32f0591954
commit 20ec868093
5 changed files with 102 additions and 32 deletions

View File

@@ -227,6 +227,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();