From 11214ad0b05cb3cf9ea12bf15cd32d245660df66 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Fri, 2 Jun 2017 09:56:56 +0200 Subject: [PATCH] pour import zone mt --- InterfaceQT4/editor.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/InterfaceQT4/editor.py b/InterfaceQT4/editor.py index ed534c90..c65f126c 100755 --- a/InterfaceQT4/editor.py +++ b/InterfaceQT4/editor.py @@ -1386,8 +1386,17 @@ class JDCEditor(Ui_baseWidget,QWidget): monItem=itemApres etape=monItem.item.object CONTEXT.set_current_step(etape) - etape.build_includeEtape(texte) + try : + ok=etape.build_includeEtape(texte) + except : + ok=0 + if not ok : + QMessageBox.information( self, + tr("Import texte"), + tr("Impossible d importer le texte")) self.tree.racine.build_children() + return ok + #-------------------------------------# -- 2.39.2