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

Fix cancel button being focused

parent d96f5614
......@@ -182,9 +182,9 @@ KateSaveModifiedDialog::KateSaveModifiedDialog(QWidget *parent, const QList<KTex
QPushButton *cancelButton = new QPushButton;
KGuiItem::assign(cancelButton, KStandardGuiItem::cancel());
cancelButton->setDefault(true);
cancelButton->setFocus();
buttons->addButton(cancelButton, QDialogButtonBox::RejectRole);
connect(cancelButton, &QPushButton::clicked, this, &KateSaveModifiedDialog::reject);
cancelButton->setFocus();
}
KateSaveModifiedDialog::~KateSaveModifiedDialog()
......
Markdown is supported
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