Skip to content

Commit

Permalink
isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Oct 25, 2024
1 parent 8264a1e commit 97f8217
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def createEditorPrivate(self, parent=None):

def configureEditorPrivate(self, editor: QComboBox, setting: QgsSettingsEntryBase):
self.setting = setting
self.editor = editor
if editor is not None:
if isinstance(editor, QComboBox):
self.editor = editor
for i in range(self.setting.metaEnum().keyCount()):
value = self.setting.metaEnum().value(i)
key = self.setting.metaEnum().key(i)
Expand Down

0 comments on commit 97f8217

Please sign in to comment.