[bugfix] workaround for MacOS, where SetChannelComponents class can not be saved using QSettings

This commit is contained in:
Marcel Paffrath 2020-06-16 12:03:34 +02:00
parent fb6ba83cc5
commit 1a20d7fbcb

View File

@ -804,7 +804,7 @@ class WaveformWidgetPG(QtGui.QWidget):
settings = QSettings() settings = QSettings()
compclass = settings.value('compclass') compclass = settings.value('compclass')
if not compclass: if not type(compclass) == SetChannelComponents:
print('Warning: No settings for channel components found. Using default') print('Warning: No settings for channel components found. Using default')
compclass = SetChannelComponents() compclass = SetChannelComponents()