From: Pascale Noyret Date: Fri, 9 Nov 2007 16:05:09 +0000 (+0000) Subject: PN pas de rapport de validation si on ouvre un nouveau JDC X-Git-Tag: V1_13b1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1319a8e310bbebfb6864b43dc362d337c664c07c;p=modules%2Feficas.git PN pas de rapport de validation si on ouvre un nouveau JDC --- diff --git a/InterfaceQT/editor.py b/InterfaceQT/editor.py index 7f563a63..55828070 100644 --- a/InterfaceQT/editor.py +++ b/InterfaceQT/editor.py @@ -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 --------------