Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2020-01-08 18:45:09 +0300
committerJulian Eisel <eiseljulian@gmail.com>2020-01-08 18:45:09 +0300
commitf1516e007d9c9f72218c3256eaa1b478a6c25052 (patch)
treecec7266e200624a8b344c2a18a781b906b2ee2ad /source/blender/editors/space_file/file_ops.c
parentf52d9a878de95ca50788f1773d2c7c48301a6789 (diff)
Fix T72288: Left click on empty space inside file browser resets scrolling
Wasn't checking if there actually is a selection.
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r--source/blender/editors/space_file/file_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index 77e6266b830..61eb4db8300 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -322,7 +322,7 @@ static FileSelect file_select(
if (select != FILE_SEL_ADD && !file_is_any_selected(sfile->files)) {
sfile->params->active_file = -1;
}
- else {
+ else if (sel.last >= 0) {
ARegion *ar = CTX_wm_region(C);
const FileLayout *layout = ED_fileselect_get_layout(sfile, ar);