mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +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 (model()->is_valid(index)) {
|
||||||
if (selection_update == SelectionUpdate::Set)
|
if (selection_update == SelectionUpdate::Set)
|
||||||
selection().set(index);
|
set_selection(index);
|
||||||
else if (selection_update == SelectionUpdate::Ctrl)
|
else if (selection_update == SelectionUpdate::Ctrl)
|
||||||
toggle_selection(index);
|
toggle_selection(index);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue