From 1fde823a9cb1412e3a33bd7c045e7be153d26d23 Mon Sep 17 00:00:00 2001 From: Goffi Date: Thu, 20 Aug 2015 18:41:06 +0200 Subject: [PATCH] primivitus: fixed profile manager exception when nothing is focused --- frontends/src/primitivus/profile_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/src/primitivus/profile_manager.py b/frontends/src/primitivus/profile_manager.py index 516ebdd5..f59b4271 100644 --- a/frontends/src/primitivus/profile_manager.py +++ b/frontends/src/primitivus/profile_manager.py @@ -163,7 +163,7 @@ class ProfileManager(QuickProfileManager, urwid.WidgetWrap): """ 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