From a48bc641b826555c6679ad1b69b3a80cbb6871af Mon Sep 17 00:00:00 2001 From: xtemp09 Date: Mon, 8 Dec 2025 18:15:33 +0700 Subject: [PATCH] =?UTF-8?q?[GUI]=20Rename=20Cancel=20=E2=80=98Close?= =?UTF-8?q?=E2=80=99=20in=20Add=20Property=20dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gui/Dialogs/DlgAddProperty.cpp | 4 ++-- src/Gui/Dialogs/DlgAddProperty.ui | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gui/Dialogs/DlgAddProperty.cpp b/src/Gui/Dialogs/DlgAddProperty.cpp index 6b0d5f77c2..0b391df125 100644 --- a/src/Gui/Dialogs/DlgAddProperty.cpp +++ b/src/Gui/Dialogs/DlgAddProperty.cpp @@ -512,8 +512,8 @@ void DlgAddProperty::setTitle() void DlgAddProperty::setAddEnabled(bool enabled) { QPushButton* addButton = ui->buttonBox->button(QDialogButtonBox::Ok); - QPushButton* cancelButton = ui->buttonBox->button(QDialogButtonBox::Cancel); - cancelButton->setDefault(!enabled); + QPushButton* closeButton = ui->buttonBox->button(QDialogButtonBox::Close); + closeButton->setDefault(!enabled); addButton->setDefault(enabled); addButton->setEnabled(enabled); } diff --git a/src/Gui/Dialogs/DlgAddProperty.ui b/src/Gui/Dialogs/DlgAddProperty.ui index a0c00a7d8e..72659b2784 100644 --- a/src/Gui/Dialogs/DlgAddProperty.ui +++ b/src/Gui/Dialogs/DlgAddProperty.ui @@ -75,7 +75,7 @@ Qt::Orientation::Horizontal - QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok + QDialogButtonBox::StandardButton::Close|QDialogButtonBox::StandardButton::Ok