Fix T72288: Left click on empty space inside file browser resets scrolling

Wasn't checking if there actually is a selection.
This commit is contained in:
Germano Cavalcante 2020-01-08 16:45:09 +01:00 committed by Julian Eisel
parent f52d9a878d
commit f1516e007d
Notes: blender-bot 2023-02-14 08:42:54 +01:00
Referenced by issue #72288, Left click on empty space inside file browser resets scrolling
1 changed files with 1 additions and 1 deletions

View File

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