mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
don't try to log in if user cancels login dialog
This commit is contained in:
parent
72b4148127
commit
88c36af987
1 changed files with 2 additions and 2 deletions
|
|
@ -217,10 +217,10 @@ enter your details below.""") %
|
|||
vbox.addWidget(bb)
|
||||
d.setLayout(vbox)
|
||||
d.show()
|
||||
d.exec_()
|
||||
accepted = d.exec_()
|
||||
u = user.text()
|
||||
p = passwd.text()
|
||||
if not u or not p:
|
||||
if not accepted or not u or not p:
|
||||
return
|
||||
return (u, p)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue