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
parent 64f8cc3e7d
commit c82efd3276

@ -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) {