Changeset View
Changeset View
Standalone View
Standalone View
src/qt/optionsdialog.cpp
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | if (model) { | ||||
if (btnRetVal == QMessageBox::Cancel) return; | if (btnRetVal == QMessageBox::Cancel) return; | ||||
/* reset all options and close GUI */ | /* reset all options and close GUI */ | ||||
model->Reset(); | model->Reset(); | ||||
QApplication::quit(); | QApplication::quit(); | ||||
} | } | ||||
} | } | ||||
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() { | void OptionsDialog::on_okButton_clicked() { | ||||
mapper->submit(); | mapper->submit(); | ||||
accept(); | accept(); | ||||
updateDefaultProxyNets(); | updateDefaultProxyNets(); | ||||
} | } | ||||
void OptionsDialog::on_cancelButton_clicked() { | void OptionsDialog::on_cancelButton_clicked() { | ||||
reject(); | reject(); | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |