From 275d183d60fc0efe1349c71dcd65a6a8738bf3e5 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 (grafted from 4ab42563da728f56273e9801b0a8e55df4840c72) --HG-- branch : 6.0 --- 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()