]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
PN pas de rapport de validation si on ouvre un nouveau JDC
authorPascale Noyret <pascale.noyret@edf.fr>
Fri, 9 Nov 2007 16:05:09 +0000 (16:05 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Fri, 9 Nov 2007 16:05:09 +0000 (16:05 +0000)
InterfaceQT/editor.py

index 7f563a63a1a7574c6c2ef6b2ae07823ff142ed6a..558280706df07fe3dceea21ac5128576f310fb36 100644 (file)
@@ -74,6 +74,7 @@ class JDCEditor(QSplitter):
 
         jdc_item = None
                         
+        nouveau=0
         if self.fileName is not None:        #  fichier jdc fourni
             self.fileInfo = QFileInfo(self.fileName)
             self.fileInfo.setCaching(0)
@@ -100,6 +101,7 @@ class JDCEditor(QSplitter):
         else: 
             if not self.jdc:                   #  nouveau jdc
                 self.jdc = self._newJDC(units=units)
+                nouveau=1
         
         if self.jdc:            
             self.jdc.appli = self
@@ -116,7 +118,7 @@ class JDCEditor(QSplitter):
                 comploader.charger_composants("QT")
                 jdc_item=Objecttreeitem.make_objecttreeitem( self, "nom", self.jdc )
 
-                if not self.jdc.isvalid():
+                if (not self.jdc.isvalid()) and (not nouveau) :
                     self.viewJdcRapport()
 
         #------- config widget --------------