diff --git a/sohstationviewer/view/main_window.py b/sohstationviewer/view/main_window.py index 666c94cf570f00402414fbeebac09127ce5ca06d..6a3dcdb057857adf157b102f5ae11c46f42affed 100755 --- a/sohstationviewer/view/main_window.py +++ b/sohstationviewer/view/main_window.py @@ -894,7 +894,8 @@ class MainWindow(QtWidgets.QMainWindow, UIMainWindow): 'WHERE current=1') if len(rows) > 0: self.pref_soh_list_name = rows[0]['name'] - self.pref_soh_list = [t.strip() for t in rows[0]['IDs'].split(',')] + self.pref_soh_list = [t.strip() for t in rows[0]['IDs'].split(',') + if t.strip() != ''] self.pref_soh_list_data_type = rows[0]['dataType'] def resizeEvent(self, event):