Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

filedialog: do not allow empty filenames

  • Loading branch information...
commit 252720cdcae915e1fa2c694aaeba3576aae13b88 1 parent d94aa14
@sbourdeauducq sbourdeauducq authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/filedialog.c
View
6 src/filedialog.c
@@ -231,7 +231,11 @@ static void file_selcommit_callback(mtk_event *e, void *arg)
static void dlg_ok_callback(mtk_event *e, void *arg)
{
struct filedialog *dlg = arg;
-
+ char file[384];
+
+ mtk_req(dlg->appid, file, sizeof(file), "fd_filename.text");
+ if(strcmp(file, "") == 0)
+ return;
close_filedialog(dlg);
if(dlg->ok_callback)
dlg->ok_callback(dlg->ok_callback_arg);
Please sign in to comment.
Something went wrong with that request. Please try again.