]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
pour import zone mt
authorpascale.noyret <pascale.noyret@edf.fr>
Fri, 2 Jun 2017 07:56:56 +0000 (09:56 +0200)
committerpascale.noyret <pascale.noyret@edf.fr>
Fri, 2 Jun 2017 07:56:56 +0000 (09:56 +0200)
InterfaceQT4/editor.py

index ed534c90ba357b6457e7fbfaff9e8e7ad7cdb3be..c65f126c79c03d3d02f5b38f687d7054e4915aa4 100755 (executable)
@@ -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
+
 
 
     #-------------------------------------#