jdc_item = None
+ nouveau=0
if self.fileName is not None: # fichier jdc fourni
self.fileInfo = QFileInfo(self.fileName)
self.fileInfo.setCaching(0)
else:
if not self.jdc: # nouveau jdc
self.jdc = self._newJDC(units=units)
+ nouveau=1
if self.jdc:
self.jdc.appli = self
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 --------------