MCPcopy Create free account
hub / github.com/ElementsProject/elements / on_openBitcoinConfButton_clicked

Method on_openBitcoinConfButton_clicked

src/qt/optionsdialog.cpp:305–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void 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
329void OptionsDialog::on_okButton_clicked()
330{

Callers

nothing calls this directly

Calls 3

openBitcoinConfFunction · 0.85
setTextMethod · 0.80
execMethod · 0.80

Tested by

no test coverage detected