From 1a20d7fbcbafdb9c43478536916b787ced6f2802 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 16 Jun 2020 12:03:34 +0200 Subject: [PATCH] [bugfix] workaround for MacOS, where SetChannelComponents class can not be saved using QSettings --- pylot/core/util/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index d65bd29e..76d35972 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -804,7 +804,7 @@ class WaveformWidgetPG(QtGui.QWidget): settings = QSettings() compclass = settings.value('compclass') - if not compclass: + if not type(compclass) == SetChannelComponents: print('Warning: No settings for channel components found. Using default') compclass = SetChannelComponents()