mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 10:14:58 +00:00
LibGUI: Minor consistency cleanup in AbstractView::set_cursor() (#3478)
This commit is contained in:
parent
2b17d980cf
commit
8a21c528ad
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue