Skip to content

Commit

Permalink
Fix crash due to missing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteMagic committed Jun 16, 2019
1 parent 7d5dbd3 commit 8b1f5ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gremlin/ui/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ def _change_mode_inheritance(self, mode, inherit):
for name, device in self._profile.devices.items():
if inherit == "None":
inherit = None
device.ensure_mode_exists(mode)
device.modes[mode].inherit = inherit
self.modes_changed.emit()

Expand Down

0 comments on commit 8b1f5ab

Please sign in to comment.