Skip to content

Commit

Permalink
Fix setFormat typos, add isEmpty method (#1931)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-soja authored Sep 6, 2023
1 parent 947169b commit ae31712
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/indidevice/property/indipropertyview.h
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,11 @@ struct WidgetView<IText>: 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)
Expand Down Expand Up @@ -971,7 +976,7 @@ struct WidgetView<IBLOB>: PROPERTYVIEW_BASE_ACCESS IBLOB
}
void setFormat(const std::string &format)
{
setLabel(format.data());
setFormat(format.data());
}

void setBlob(void *blob)
Expand Down

0 comments on commit ae31712

Please sign in to comment.