mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-17 13:13:58 +00:00
Fix crash after deleting the last profile in the list
This commit is contained in:
@@ -261,7 +261,8 @@ class ProfileEditorDialog(SingletonDialog, PicardDialog):
|
||||
"""Set tree list highlight bar to proper line if selection change canceled.
|
||||
"""
|
||||
item = self.ui.profile_list.currentItem()
|
||||
item.setSelected(True)
|
||||
if item:
|
||||
item.setSelected(True)
|
||||
self.update_profile_changed_message()
|
||||
|
||||
def set_current_item(self, item):
|
||||
|
||||
Reference in New Issue
Block a user