Skip to content

Commit 644567c

Browse files
committed
small fix when loading project (regression introduced by radar plot)
1 parent 249b348 commit 644567c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DataPlotly/gui/plot_settings_widget.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,8 +1381,9 @@ def set_settings(self, settings: PlotSettings): # pylint: disable=too-many-stat
13811381
self.layout_grid_axis_color.setColor(
13821382
QColor(settings.layout.get('gridcolor') or '#bdbfc0'))
13831383
self.pie_hole.setValue(settings.properties.get('pie_hole', 0))
1384-
for name in settings.properties.get('y_fields_combo', '').split(", "):
1385-
self.y_fields_combo.setItemCheckState(self.y_fields_combo.findText(name), Qt.CheckState.Checked)
1384+
if settings.properties.get('y_fields_combo'):
1385+
for name in settings.properties.get('y_fields_combo', '').split(", "):
1386+
self.y_fields_combo.setItemCheckState(self.y_fields_combo.findText(name), Qt.CheckState.Checked)
13861387
self.line_combo_threshold.setCurrentText(
13871388
settings.properties.get('line_combo_threshold', 'Dash Line')
13881389
)

0 commit comments

Comments
 (0)