From 2ff8b46392b4ab3cf1cd98cd53dfce1ac8200354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 12 Mar 2010 14:34:36 +0100 Subject: [PATCH] Set cursor with display call in switch view function The widget must be displayed to be able to call set_cursor --- tryton/gui/window/view_form/screen/screen.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py index d5478ee558..4eef5e2156 100644 --- a/tryton/gui/window/view_form/screen/screen.py +++ b/tryton/gui/window/view_form/screen/screen.py @@ -256,9 +256,8 @@ class Screen(SignalEvent): else: if self.current_view.view_type == 'form': self.new() - self.current_view.set_cursor() self.current_view.cancel() - self.display() + self.display(set_cursor=True) def load_view_to_load(self): if len(self.view_to_load):