From 3276c06c2a2f97a337e461439811d73bd957aeca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 11 Jan 2022 23:04:17 +0100 Subject: [PATCH] Do not update counter label if widget has been removed issue11110 review380011002 --- tryton/gui/window/view_form/view/form_gtk/state_widget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/state_widget.py b/tryton/gui/window/view_form/view/form_gtk/state_widget.py index 83825dd8bf..87c2317749 100644 --- a/tryton/gui/window/view_form/view/form_gtk/state_widget.py +++ b/tryton/gui/window/view_form/view/form_gtk/state_widget.py @@ -193,7 +193,7 @@ class Link(StateMixin, Gtk.Button): 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()