mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -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)
|
vbox.addWidget(bb)
|
||||||
d.setLayout(vbox)
|
d.setLayout(vbox)
|
||||||
d.show()
|
d.show()
|
||||||
d.exec_()
|
accepted = d.exec_()
|
||||||
u = user.text()
|
u = user.text()
|
||||||
p = passwd.text()
|
p = passwd.text()
|
||||||
if not u or not p:
|
if not accepted or not u or not p:
|
||||||
return
|
return
|
||||||
return (u, p)
|
return (u, p)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue