Set focus on entry_user if there is no _USERNAME for issue470
This commit is contained in:
@@ -429,8 +429,11 @@ def send_bugtracker(msg, parent):
|
||||
|
||||
win.vbox.pack_start(hbox)
|
||||
win.show_all()
|
||||
entry_password.grab_focus()
|
||||
entry_user.set_text(rpc._USERNAME)
|
||||
if rpc._USERNAME:
|
||||
entry_user.set_text(rpc._USERNAME)
|
||||
entry_password.grab_focus()
|
||||
else:
|
||||
entry_user.grab_focus()
|
||||
|
||||
response = win.run()
|
||||
parent.present()
|
||||
|
||||
Reference in New Issue
Block a user