]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
*** empty log message ***
authorPascale Noyret <pascale.noyret@edf.fr>
Mon, 29 Nov 2010 14:27:30 +0000 (14:27 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Mon, 29 Nov 2010 14:27:30 +0000 (14:27 +0000)
InterfaceQT4/editor.py

index 4279d40048002758b08ddd8908b7190848e00e6a..1ab95d8eb13c87fdc9490aededc21cb50b2a7356 100644 (file)
@@ -533,6 +533,12 @@ class JDCEditor(QSplitter):
     def runYACS(self,execution="oui",nomFichier=None):
     #------------------------------------------------#
       format=self.appliEficas.format_fichier
+      if (not self.jdc.isvalid()) :
+         QMessageBox.warning(self,
+             self.trUtf8("Sauvegarde YACS impossible"),
+             self.trUtf8("Le Schema n est pas encore valide."),
+                       self.trUtf8("&OK"),)
+         return
       if generator.plugins.has_key(format):
          # Le generateur existe on l'utilise
          self.generator=generator.plugins[format]()