summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--atari/settings.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/atari/settings.c b/atari/settings.c
index 30ad20a13..fa835bfbf 100644
--- a/atari/settings.c
+++ b/atari/settings.c
@@ -369,7 +369,9 @@ static bool handle_filesystem_select_button(short rsc_bt)
if (require_path == false) {
path = file_select(title, "");
- gemtk_obj_set_str_safe(dlgtree, rsc_te, path);
+ if (path != NULL) {
+ gemtk_obj_set_str_safe(dlgtree, rsc_te, path);
+ }
}
else {
do {
@@ -388,6 +390,7 @@ static bool handle_filesystem_select_button(short rsc_bt)
}
}
+ OBJ_UNCHECK(rsc_bt);
OBJ_REDRAW(rsc_bt);
OBJ_REDRAW(rsc_te);
}