Commit 3466e3d4 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Logindialog: fix call to setFocus()

parent ba1fe6cc
......@@ -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)
......
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