Commit 0d75b07f authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Fix cancel button being focused

parent d96f5614
...@@ -182,9 +182,9 @@ KateSaveModifiedDialog::KateSaveModifiedDialog(QWidget *parent, const QList<KTex ...@@ -182,9 +182,9 @@ KateSaveModifiedDialog::KateSaveModifiedDialog(QWidget *parent, const QList<KTex
QPushButton *cancelButton = new QPushButton; QPushButton *cancelButton = new QPushButton;
KGuiItem::assign(cancelButton, KStandardGuiItem::cancel()); KGuiItem::assign(cancelButton, KStandardGuiItem::cancel());
cancelButton->setDefault(true); cancelButton->setDefault(true);
cancelButton->setFocus();
buttons->addButton(cancelButton, QDialogButtonBox::RejectRole); buttons->addButton(cancelButton, QDialogButtonBox::RejectRole);
connect(cancelButton, &QPushButton::clicked, this, &KateSaveModifiedDialog::reject); connect(cancelButton, &QPushButton::clicked, this, &KateSaveModifiedDialog::reject);
cancelButton->setFocus();
} }
KateSaveModifiedDialog::~KateSaveModifiedDialog() KateSaveModifiedDialog::~KateSaveModifiedDialog()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment