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:
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
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue