Skip to content
Snippets Groups Projects
Commit fcacbbf7 authored by deuce's avatar deuce
Browse files

When selecting files, start in the files pane. When selecting dirs, start

in the dir pane.
parent e9d9d434
No related branches found
No related tags found
No related merge requests found
...@@ -297,8 +297,8 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char ...@@ -297,8 +297,8 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char
int listwidth; int listwidth;
char **dir_list=NULL; char **dir_list=NULL;
char **file_list=NULL; char **file_list=NULL;
int currfield=DIR_LIST; int currfield;
int lastfield=DIR_LIST; int lastfield;
int i; int i;
int root=0; /* Is this the root of the file system? */ int root=0; /* Is this the root of the file system? */
/* On *nix, this just means no .. on Win32, /* On *nix, this just means no .. on Win32,
...@@ -331,6 +331,11 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char ...@@ -331,6 +331,11 @@ int filepick(uifcapi_t *api, char *title, struct file_pick *fp, char *dir, char
if((opts & UIFC_FP_MULTI)==UIFC_FP_MULTI && (opts & (UIFC_FP_ALLOWENTRY|UIFC_FP_OVERPROMPT|UIFC_FP_CREATPROMPT))) if((opts & UIFC_FP_MULTI)==UIFC_FP_MULTI && (opts & (UIFC_FP_ALLOWENTRY|UIFC_FP_OVERPROMPT|UIFC_FP_CREATPROMPT)))
return(-1); return(-1);
if (opts & UIFC_FP_DIRSEL)
currfield = lastfield = DIR_LIST;
else
currfield = lastfield = FILE_LIST;
fp->files=0; fp->files=0;
fp->selected=NULL; fp->selected=NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment