diff --git a/libs/indidevice/property/indipropertyview.h b/libs/indidevice/property/indipropertyview.h index 78bf8c29bb..1502e8cd20 100644 --- a/libs/indidevice/property/indipropertyview.h +++ b/libs/indidevice/property/indipropertyview.h @@ -472,6 +472,11 @@ struct WidgetView: PROPERTYVIEW_BASE_ACCESS IText { return getLabel() == otherLabel; } + + bool isEmpty() const + { + return getText()[0] == '\0'; + } public: void fill(const char *name, const char *label, const char *initialText) @@ -971,7 +976,7 @@ struct WidgetView: PROPERTYVIEW_BASE_ACCESS IBLOB } void setFormat(const std::string &format) { - setLabel(format.data()); + setFormat(format.data()); } void setBlob(void *blob)