Skip to content

Commit

Permalink
Merge pull request #906 from tov101/groups_fixes
Browse files Browse the repository at this point in the history
Do not allow sub-groups channels to be enabled if parent is disabled.
  • Loading branch information
danielhrisca authored Sep 8, 2023
2 parents 5f8c598 + 2e83b17 commit c023774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/asammdf/gui/widgets/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2118,7 +2118,7 @@ def set_conversion(self, conversion):
child.set_conversion(conversion)

def set_disabled(self, disabled, preserve_subgroup_state=True):
if self.type() == self.Channel:
if self.type() == self.Channel and self.parent().isDisabled() == disabled:
self.setDisabled(disabled)
if self.details is not None:
self.details.setDisabled(disabled)
Expand Down
2 changes: 1 addition & 1 deletion src/asammdf/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
""" asammdf version module """

__version__ = "7.3.15.dev6"
__version__ = "7.3.15.dev7"

0 comments on commit c023774

Please sign in to comment.