| 303 | } |
| 304 | |
| 305 | void OptionsDialog::on_openBitcoinConfButton_clicked() |
| 306 | { |
| 307 | QMessageBox config_msgbox(this); |
| 308 | config_msgbox.setIcon(QMessageBox::Information); |
| 309 | //: Window title text of pop-up box that allows opening up of configuration file. |
| 310 | config_msgbox.setWindowTitle(tr("Configuration options")); |
| 311 | /*: Explanatory text about the priority order of instructions considered by client. |
| 312 | The order from high to low being: command-line, configuration file, GUI settings. */ |
| 313 | config_msgbox.setText(tr("The configuration file is used to specify advanced user options which override GUI settings. " |
| 314 | "Additionally, any command-line options will override this configuration file.")); |
| 315 | |
| 316 | QPushButton* open_button = config_msgbox.addButton(tr("Continue"), QMessageBox::ActionRole); |
| 317 | config_msgbox.addButton(tr("Cancel"), QMessageBox::RejectRole); |
| 318 | open_button->setDefault(true); |
| 319 | |
| 320 | config_msgbox.exec(); |
| 321 | |
| 322 | if (config_msgbox.clickedButton() != open_button) return; |
| 323 | |
| 324 | /* show an error if there was some problem opening the file */ |
| 325 | if (!GUIUtil::openBitcoinConf()) |
| 326 | QMessageBox::critical(this, tr("Error"), tr("The configuration file could not be opened.")); |
| 327 | } |
| 328 | |
| 329 | void OptionsDialog::on_okButton_clicked() |
| 330 | { |
nothing calls this directly
no test coverage detected