]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
appel 2 fois import-zone interdit
authorpascale.noyret <pascale.noyret@edf.fr>
Tue, 9 May 2017 15:02:08 +0000 (17:02 +0200)
committerpascale.noyret <pascale.noyret@edf.fr>
Tue, 9 May 2017 15:02:08 +0000 (17:02 +0200)
InterfaceQT4/typeNode.py

index 579928714762ee85e9ed38ca8252fd0db035816d..7ea4b363f97170a0a91c0594a9eed7d471567d30 100644 (file)
@@ -75,6 +75,10 @@ class PopUpMenuNodeMinimal(object) :
             if self.editor.code in  self.editor.appliEficas.mesScripts :
                self.dict_commandes_mesScripts=self.appliEficas.mesScripts[self.editor.code].dict_commandes
             else : return
+
+        from Extensions import jdc_include
+        if isinstance(self.item.jdc,jdc_include.JDC_INCLUDE) : return
+
         listeCommandes=self.dict_commandes_mesScripts[self.tree.currentItem().item.get_nom()]
         if type(listeCommandes) != tuple: listeCommandes=(listeCommandes,)
         numero=0
@@ -119,6 +123,8 @@ class PopUpMenuNodeMinimal(object) :
         listeCommandes=self.dict_commandes_mesScripts[nomCmd]
         commande=listeCommandes[numero]
         conditionValid=commande[4]
+
+
         if (nodeTraite.item.isvalid() == 0 and conditionValid == True):
                  QMessageBox.warning( None, 
                              tr("item invalide"),