LibGUI: Minor consistency cleanup in AbstractView::set_cursor() (#3478)

This commit is contained in:
pkotzbach 2020-09-14 20:55:07 +02:00 committed by GitHub
parent 2b17d980cf
commit 8a21c528ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 02:24:30 +09:00

View file

@ -424,7 +424,7 @@ void AbstractView::set_cursor(ModelIndex index, SelectionUpdate selection_update
if (model()->is_valid(index)) {
if (selection_update == SelectionUpdate::Set)
selection().set(index);
set_selection(index);
else if (selection_update == SelectionUpdate::Ctrl)
toggle_selection(index);