Fix T52514: don't clear filename when dropping directory path in file browser.

This commit is contained in:
Brecht Van Lommel 2017-10-06 00:18:57 +02:00 committed by Bastien Montagne
parent 20c96cce86
commit 625b2f5dab
1 changed files with 0 additions and 1 deletions

View File

@ -1302,7 +1302,6 @@ void file_sfile_filepath_set(SpaceFile *sfile, const char *filepath)
if (BLI_is_dir(filepath)) {
BLI_strncpy(sfile->params->dir, filepath, sizeof(sfile->params->dir));
sfile->params->file[0] = '\0';
}
else {
if ((sfile->params->flag & FILE_DIRSEL_ONLY) == 0) {