core(stdui/profile manager): fixed authentication cancellation

This commit is contained in:
Goffi 2016-12-04 21:35:23 +01:00
commit 58795c675c

View file

@ -67,6 +67,8 @@ class ProfileManager(object):
return {'xmlui': dialog.toXml(), 'validated': C.BOOL_FALSE}
def _authenticateProfile(self, data, profile):
if C.bool(data.get('cancelled', 'false')):
return {}
if self.host.memory.isSessionStarted(profile):
return {'validated': C.BOOL_TRUE}
try: