ui/gtk/text.c

changeset 35
834d9c15a69f
parent 32
e5f4d8af567e
child 38
acd8c4a9d3fe
--- a/ui/gtk/text.c	Sun Jun 09 16:43:40 2024 +0200
+++ b/ui/gtk/text.c	Sun Jun 09 17:00:22 2024 +0200
@@ -847,6 +847,9 @@
 
 int ui_pathtextfield_update(UiPathTextField* pathtf, const char *full_path) {
     size_t full_path_len = strlen(full_path);
+    if(full_path_len == 0) {
+        return 1;
+    }
     
     size_t nelm = 0;
     UiPathElm* path_elm = pathtf->getpathelm(full_path, full_path_len, &nelm, pathtf->getpathelmdata);

mercurial