diff --git a/ui/xui/widgets.cc b/ui/xui/widgets.cc index 3ce59537b24..34a122ce6c3 100644 --- a/ui/xui/widgets.cc +++ b/ui/xui/widgets.cc @@ -322,6 +322,7 @@ bool FilePicker(const char *str_id, const char **buf, const char *filters, if (new_path) { free((void*)*buf); *buf = strdup(new_path); + desc = *buf; changed = true; } }