Error for lineedit when setting text

Critical errors were logged when trying to set the gtkentry text when
value is null, test for this before setting entry text.
This commit is contained in:
Robert Fewell
2018-03-31 17:08:53 +01:00
parent f7211edbab
commit 3f7d70ace3

View File

@@ -97,7 +97,8 @@ int Gtk3Gui_WLineEdit_SetCharProperty(GWEN_WIDGET *w,
switch(prop) {
case GWEN_DialogProperty_Value:
gtk_entry_set_text(GTK_ENTRY(g), value);
if (value && *value)
gtk_entry_set_text(GTK_ENTRY(g), value);
return 0;
default:
break;