From e990189dd9ffdca01c8ce50ab09a969fd02589e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Mar 2012 17:38:56 +0200 Subject: [PATCH] Test is parent has window before setting cursor --- tryton/common/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tryton/common/common.py b/tryton/common/common.py index c27092fc3f..87ab8ace18 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -1247,7 +1247,8 @@ class RPCProgress(object): progressbar.pulse() time.sleep(0.1) self.parent.props.sensitive = parent_sensitive - self.parent.window.set_cursor(None) + if self.parent.window: + self.parent.window.set_cursor(None) if win: win.destroy() with gtk.gdk.lock: