From ec5d000a7652c4f0ddde3aa71421dec0f6f1eaca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 16 Apr 2011 19:38:29 +0200 Subject: [PATCH] Fix sig_plugin_execute when there is no tabs for issue1956 --- tryton/gui/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/gui/main.py b/tryton/gui/main.py index 3debbeef60..107648b82d 100644 --- a/tryton/gui/main.py +++ b/tryton/gui/main.py @@ -1351,6 +1351,8 @@ class Main(object): def sig_plugin_execute(self, widget): page = self.notebook.get_current_page() + if page == -1: + return datas = { 'model': self.pages[page].model, 'ids': self.pages[page].ids_get(),