From 1319a8e310bbebfb6864b43dc362d337c664c07c Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Fri, 9 Nov 2007 16:05:09 +0000 Subject: [PATCH] PN pas de rapport de validation si on ouvre un nouveau JDC --- InterfaceQT/editor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -------------- -- 2.39.2