primivitus: fixed profile manager exception when nothing is focused
This commit is contained in:
parent
9df7cd6d33
commit
1fde823a9c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue