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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user