]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
correction 14619
authorpascale.noyret <pascale.noyret@edf.fr>
Thu, 27 Apr 2017 13:01:55 +0000 (15:01 +0200)
committerpascale.noyret <pascale.noyret@edf.fr>
Thu, 27 Apr 2017 13:01:55 +0000 (15:01 +0200)
InterfaceQT4/gereIcones.py

index 5ab135b5cc95a2c9e5a1025f4f8853ee5a970f7d..f8893280919f7328a550def0de8def4be9fc3b41 100644 (file)
@@ -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 !="" :