diff --git a/src/dlangui/widgets/controls.d b/src/dlangui/widgets/controls.d index b5db5363..d5c65705 100644 --- a/src/dlangui/widgets/controls.d +++ b/src/dlangui/widgets/controls.d @@ -529,7 +529,7 @@ class RadioButton : ImageTextButton { /// Text only button class Button : Widget { protected UIString _text; - override @property dstring text() { return _text; } + override @property dstring text() const { return _text; } override @property Widget text(dstring s) { _text = s; requestLayout(); return this; } override @property Widget text(UIString s) { _text = s; requestLayout(); return this; } @property Widget textResource(string s) { _text = s; requestLayout(); return this; }