Reviewers: ,
Please review this at http://codereview.tryton.org/47002/ Affected files: M tryton/gui/window/dblogin.py Index: tryton/gui/window/dblogin.py =================================================================== --- a/tryton/gui/window/dblogin.py +++ b/tryton/gui/window/dblogin.py @@ -608,9 +608,10 @@ self.expand_hostspec(self.expander) res, result = None, ('', '', '', '', '') - while not (res in (gtk.RESPONSE_CANCEL, gtk.RESPONSE_DELETE_EVENT) - or (res == gtk.RESPONSE_OK and all(result))): + while not all(result): res = self.dialog.run() + if res != gtk.RESPONSE_OK: + break active_profile = self.combo_profile.get_active() if active_profile != -1: profile = self.profile_store[active_profile][0] -- [email protected] mailing list
