changeset 1479:057f0714f27e

primivitus: fixed profile manager exception when nothing is focused
author Goffi <goffi@goffi.org>
date Thu, 20 Aug 2015 18:41:06 +0200
parents 90130847a0a8
children 8d61160ee4b8
files frontends/src/primitivus/profile_manager.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/primitivus/profile_manager.py	Thu Aug 20 18:36:53 2015 +0200
+++ b/frontends/src/primitivus/profile_manager.py	Thu Aug 20 18:41:06 2015 +0200
@@ -163,7 +163,7 @@
         """
         self.updateConnectionParams()
         focused = list_wid.focus
-        selected = focused.getState()
+        selected = focused.getState() if focused is not None else False
         if not selected: # profile was just unselected
             return
         focused.setState(False, invisible=True) # we don't want the widget to be selected until we are sure we can access it