Set focus on entry_user if there is no _USERNAME for issue470

This commit is contained in:
Cédric Krier
2008-10-29 14:59:05 +01:00
parent a5b578b09a
commit 7edbb5aefb
+5 -2
View File
@@ -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()