mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
LibGUI: Minor consistency cleanup in AbstractView::set_cursor() (#3478)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user