diff src/stdui/ui_profile_manager.py @ 2090:52bd463e6fe7

core(stdui/profile manager): fixed authentication cancellation
author Goffi <goffi@goffi.org>
date Sun, 04 Dec 2016 21:35:23 +0100
parents 2daf7b4c6756
children be96beb7ca14
line wrap: on
line diff
--- a/src/stdui/ui_profile_manager.py	Sun Dec 04 18:16:48 2016 +0100
+++ b/src/stdui/ui_profile_manager.py	Sun Dec 04 21:35:23 2016 +0100
@@ -67,6 +67,8 @@
         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: