From 88c36af987e936c6f456341c8a96a36e468f94f4 Mon Sep 17 00:00:00 2001 From: "Soren I. Bjornstad" Date: Tue, 24 Jun 2014 15:04:23 -0500 Subject: [PATCH] don't try to log in if user cancels login dialog --- aqt/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/sync.py b/aqt/sync.py index c54000654..af8ff0d50 100644 --- a/aqt/sync.py +++ b/aqt/sync.py @@ -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)