From 54b69e601b9ff0c8b96b86ed93341598a04daf3f Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Tue, 9 May 2017 17:02:08 +0200 Subject: [PATCH] appel 2 fois import-zone interdit --- InterfaceQT4/typeNode.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/InterfaceQT4/typeNode.py b/InterfaceQT4/typeNode.py index 57992871..7ea4b363 100644 --- a/InterfaceQT4/typeNode.py +++ b/InterfaceQT4/typeNode.py @@ -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"), -- 2.39.2