# HG changeset patch # User Goffi # Date 1440088866 -7200 # Node ID 057f0714f27eabff7c4942284d23b6666f4e3a1b # Parent 90130847a0a88ebf1e5bdb405961d1882e4bd7b7 primivitus: fixed profile manager exception when nothing is focused diff -r 90130847a0a8 -r 057f0714f27e frontends/src/primitivus/profile_manager.py --- 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