mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: change 'Discard' to 'Cancel' button
Cancel button is more relevant to the dialog message. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
f8f6453988
commit
7575bb169b
1 changed files with 2 additions and 2 deletions
|
@ -113,8 +113,8 @@ void TemplateEdit::saveSettings()
|
||||||
if ((*templateOptions) != newTemplateOptions || grantlee_template.compare(ui->plainTextEdit->toPlainText())) {
|
if ((*templateOptions) != newTemplateOptions || grantlee_template.compare(ui->plainTextEdit->toPlainText())) {
|
||||||
QMessageBox msgBox;
|
QMessageBox msgBox;
|
||||||
msgBox.setText("Do you want to save your changes?");
|
msgBox.setText("Do you want to save your changes?");
|
||||||
msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Discard);
|
msgBox.setStandardButtons(QMessageBox::Save | QMessageBox::Cancel);
|
||||||
msgBox.setDefaultButton(QMessageBox::Discard);
|
msgBox.setDefaultButton(QMessageBox::Cancel);
|
||||||
if (msgBox.exec() == QMessageBox::Save) {
|
if (msgBox.exec() == QMessageBox::Save) {
|
||||||
memcpy(templateOptions, &newTemplateOptions, sizeof(struct template_options));
|
memcpy(templateOptions, &newTemplateOptions, sizeof(struct template_options));
|
||||||
if (grantlee_template.compare(ui->plainTextEdit->toPlainText())) {
|
if (grantlee_template.compare(ui->plainTextEdit->toPlainText())) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue