From 2e83b178d8f04c6cde91f72521c936d2987c5a61 Mon Sep 17 00:00:00 2001 From: tov101 Date: Fri, 8 Sep 2023 08:02:41 +0300 Subject: [PATCH] Do not allow sub-groups channels to be enabled if parent is disabled. --- src/asammdf/gui/widgets/tree.py | 2 +- src/asammdf/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asammdf/gui/widgets/tree.py b/src/asammdf/gui/widgets/tree.py index 2fa267f24..aa5872772 100644 --- a/src/asammdf/gui/widgets/tree.py +++ b/src/asammdf/gui/widgets/tree.py @@ -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) diff --git a/src/asammdf/version.py b/src/asammdf/version.py index 833c2947e..83b6f6635 100644 --- a/src/asammdf/version.py +++ b/src/asammdf/version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- """ asammdf version module """ -__version__ = "7.3.15.dev6" +__version__ = "7.3.15.dev7"