Rename update options dialog button labels
This commit is contained in:
@@ -186,15 +186,19 @@ UpdateOptionsDialog::UpdateOptionsDialog(QWidget * parent, UpdateFactories * fac
|
|||||||
QDialog::accept();
|
QDialog::accept();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
connect(ui->buttonBox, &QDialogButtonBox::rejected, [=]() {
|
||||||
|
QDialog::reject();
|
||||||
|
});
|
||||||
|
|
||||||
connect(ui->buttonBox, &QDialogButtonBox::clicked, [=](QAbstractButton * button) {
|
connect(ui->buttonBox, &QDialogButtonBox::clicked, [=](QAbstractButton * button) {
|
||||||
if (ui->buttonBox->standardButton(button) == QDialogButtonBox::RestoreDefaults) {
|
if (ui->buttonBox->standardButton(button) == QDialogButtonBox::RestoreDefaults) {
|
||||||
factories->resetRunEnvironment(name);
|
factories->resetRunEnvironment(name);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
else if (ui->buttonBox->standardButton(button) == QDialogButtonBox::Discard) {
|
//else if (ui->buttonBox->standardButton(button) == QDialogButtonBox::Cancel) {
|
||||||
QDialog::reject();
|
// QDialog::reject();
|
||||||
}
|
//}
|
||||||
else if (ui->buttonBox->standardButton(button) == QDialogButtonBox::Save) {
|
else if (ui->buttonBox->standardButton(button) == QDialogButtonBox::Ok) {
|
||||||
runParams->data.updateRelease = ui->cboReleases->currentText();
|
runParams->data.updateRelease = ui->cboReleases->currentText();
|
||||||
|
|
||||||
for (int i = 0; i < runParams->data.assets.size(); i++) {
|
for (int i = 0; i < runParams->data.assets.size(); i++) {
|
||||||
|
|||||||
@@ -116,7 +116,7 @@
|
|||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="standardButtons">
|
<property name="standardButtons">
|
||||||
<set>QDialogButtonBox::Discard|QDialogButtonBox::RestoreDefaults|QDialogButtonBox::Save</set>
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::RestoreDefaults</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user