Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
Kajongg
Commits
3466e3d4
Commit
3466e3d4
authored
May 05, 2021
by
Wolfgang Rohdewald
Browse files
Logindialog: fix call to setFocus()
parent
ba1fe6cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/login.py
View file @
3466e3d4
...
...
@@ -276,7 +276,7 @@ class LoginDlg(QDialog):
# Ubuntu 11.10 unity is a bit strange - without this, it sets focus on
# the cancel button (which it shows on the left). I found no obvious
# way to use setDefault and setAutoDefault for fixing this.
self
.
buttonBox
.
button
(
QDialogButtonBox
.
Ok
).
setFocus
(
True
)
self
.
buttonBox
.
button
(
QDialogButtonBox
.
Ok
).
setFocus
()
self
.
buttonBox
.
accepted
.
connect
(
self
.
accept
)
self
.
buttonBox
.
rejected
.
connect
(
self
.
reject
)
vbox
=
QVBoxLayout
(
self
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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