From: pascale.noyret Date: Fri, 2 Jun 2017 07:56:56 +0000 (+0200) Subject: pour import zone mt X-Git-Tag: V8_3_0~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=11214ad0b05cb3cf9ea12bf15cd32d245660df66;p=tools%2Feficas.git pour import zone mt --- 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 + #-------------------------------------#