mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user