From: pascale.noyret Date: Thu, 27 Apr 2017 13:01:55 +0000 (+0200) Subject: correction 14619 X-Git-Tag: Salome_8_3_Hydro_2_0rc1~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9eefb2f974d1a061060f4e964cceca29c056cafb;p=modules%2Feficas.git correction 14619 --- diff --git a/InterfaceQT4/gereIcones.py b/InterfaceQT4/gereIcones.py index 5ab135b5..f8893280 100644 --- a/InterfaceQT4/gereIcones.py +++ b/InterfaceQT4/gereIcones.py @@ -28,6 +28,7 @@ except : pass import types,os,re,sys import traceback import six +import inspect from PyQt5.QtWidgets import QMessageBox, QFileDialog , QMenu, QPushButton, QTreeView ,QListView, QAbstractItemView from PyQt5.QtGui import QIcon @@ -392,7 +393,7 @@ class ContientIcones(object): return from Accas import SalomeEntry - if isinstance(kwType, type) and issubclass(kwType, SalomeEntry): + if inspect.isclass(kwType) and issubclass(kwType, SalomeEntry): selection, commentaire = self.appliEficas.selectEntryFromSalome(kwType,editor=self.editor) if commentaire !="" :