Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
0d75b07f
Commit
0d75b07f
authored
Sep 12, 2020
by
Alexander Lohnau
💬
Browse files
Fix cancel button being focused
parent
d96f5614
Changes
1
Show whitespace changes
Inline
Side-by-side
kate/katesavemodifieddialog.cpp
View file @
0d75b07f
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment