diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-10-28 21:22:44 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-10-28 21:34:41 +0300 |
commit | 7c1fbe24ca33a13e61043aa73b2fd7db20627171 (patch) | |
tree | 7479631fcfe4178bfa5b99e9d96e3b724a94f1ad /source/blender/editors/space_file/filesel.c | |
parent | 43a8fdb6addf3a31b34cdd5d7989e428bec37c07 (diff) |
Fix T71019: Disappearing file thumbnails & crash on area split
When opening the file browser as regular editor, the ID filter flags
as stored in FileSelectParams were not set explicitly, so they were 0.
Since 9100982e8097, the value actually passed to the filtering could
differ from that, causing the file list cache to be constantly updated
on every redraw.
Caused by 9100982e8097.
Note that this "accidentially" got fixed in master with b54626364253,
which is why the issue only showed up in the release branch from that
point.
Diffstat (limited to 'source/blender/editors/space_file/filesel.c')
-rw-r--r-- | source/blender/editors/space_file/filesel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/space_file/filesel.c b/source/blender/editors/space_file/filesel.c index ba4ccb4fba9..3776b660859 100644 --- a/source/blender/editors/space_file/filesel.c +++ b/source/blender/editors/space_file/filesel.c @@ -107,6 +107,7 @@ short ED_fileselect_set_params(SpaceFile *sfile) sfile->params->thumbnail_size = U_default.file_space_data.thumbnail_size; /* Show size column by default. */ sfile->params->details_flags = U_default.file_space_data.details_flags; + sfile->params->filter_id = FILTER_ID_ALL; } params = sfile->params; @@ -246,9 +247,6 @@ short ED_fileselect_set_params(SpaceFile *sfile) } } - /* For now, always init filterid to 'all true' */ - params->filter_id = FILTER_ID_ALL; - if (U.uiflag & USER_HIDE_DOT) { params->flag |= FILE_HIDE_DOT; } |