Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

filedialog: do not allow empty filenames

  • Loading branch information...
commit 5ae643ac8bd8318a93bc24f5c16dd78eef462753 1 parent 02a915c
@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.