Fixed segfault for widgets without options

This commit is contained in:
Raphael Coeffic
2021-05-06 12:55:59 +02:00
committed by Raphael Coeffic
parent a01a22c96f
commit 4f0ca997a8
+1 -2
View File
@@ -44,8 +44,7 @@ WidgetSettings::WidgetSettings(Window * parent, Widget * widget) :
uint8_t optIdx = 0;
auto optPtr = widget->getOptions();
while (optPtr->name != nullptr) {
while (optPtr && optPtr->name != nullptr) {
auto option = *optPtr;
new StaticText(form, grid.getLabelSlot(), option.name);