don't try to log in if user cancels login dialog

This commit is contained in:
Soren I. Bjornstad 2014-06-24 15:04:23 -05:00
parent 72b4148127
commit 88c36af987

View file

@ -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)