Add a button to open the config file in a text editor
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user