ComboBox: PlaceHolder property does not crash anymore on read-only ComboBox.

[GB.QT4]
* BUG: ComboBox: PlaceHolder property does not crash anymore on read-only ComboBox.

[GB.QT5]
* BUG: ComboBox: PlaceHolder property does not crash anymore on read-only ComboBox.
This commit is contained in:
gambas 2021-01-17 00:10:14 +01:00
parent b62b931d50
commit 6debc3df5e

View File

@ -123,10 +123,12 @@ END_PROPERTY
BEGIN_PROPERTY(TextBox_Placeholder)
GET_TEXT_BOX();
if (READ_PROPERTY)
RETURN_NEW_STRING(TEXTBOX->placeholderText());
RETURN_NEW_STRING(textbox->placeholderText());
else
TEXTBOX->setPlaceholderText(QSTRING_PROP());
textbox->setPlaceholderText(QSTRING_PROP());
END_PROPERTY