Skip to content

Commit

Permalink
Merge pull request #6 from ivn951/bug_fix_default_is_not_in_list
Browse files Browse the repository at this point in the history
Fix crash if "default" profile does not exist
  • Loading branch information
kannes authored Jun 12, 2023
2 parents 2f705da + e4b9cc4 commit 60a2706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion userInterface/interface_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def init_profile_selection(self, profile="default"):
for name in profile_names:
# Init source profiles combobox
self.dlg.comboBoxNamesSource.addItem(name)
self.dlg.comboBoxNamesSource.setCurrentIndex(profile_names.index(profile))
if profile in profile_names:
self.dlg.comboBoxNamesSource.setCurrentIndex(profile_names.index(profile))
# Init target profiles combobox
self.dlg.comboBoxNamesTarget.addItem(name)
# Add profiles to list view
Expand Down

0 comments on commit 60a2706

Please sign in to comment.