diff --git a/ui/text/text_entity.h b/ui/text/text_entity.h index 1986dca..d5a770c 100644 --- a/ui/text/text_entity.h +++ b/ui/text/text_entity.h @@ -256,6 +256,10 @@ struct TextWithTags { QString text; Tags tags; + + [[nodiscard]] bool empty() const { + return text.isEmpty(); + } }; inline bool operator==(const TextWithTags::Tag &a, const TextWithTags::Tag &b) {