changeset 4ab42563da72 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset&node=4ab42563da72
description:
        Do not update counter label if widget has been removed

        issue11110
        review380011002
diffstat:

 tryton/gui/window/view_form/view/form_gtk/state_widget.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7121bacd50e1 -r 4ab42563da72 
tryton/gui/window/view_form/view/form_gtk/state_widget.py
--- a/tryton/gui/window/view_form/view/form_gtk/state_widget.py Tue Jan 11 
23:03:06 2022 +0100
+++ b/tryton/gui/window/view_form/view/form_gtk/state_widget.py Tue Jan 11 
23:04:17 2022 +0100
@@ -193,7 +193,7 @@
                         counter=counter, label=label))
 
     def _set_count(self, value, idx=0, current=None, counter=None, label=''):
-        if current != self._current:
+        if current != self._current and not self.get_parent():
             return
         try:
             counter[idx] = value()

Reply via email to