mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibGUI: Minor consistency cleanup in AbstractView::set_cursor() (#3478)
This commit is contained in:
parent
2b17d980cf
commit
8a21c528ad
Notes:
sideshowbarker
2024-07-19 02:24:30 +09:00
Author: https://github.com/pkotzbach Commit: https://github.com/SerenityOS/serenity/commit/8a21c528ad9 Pull-request: https://github.com/SerenityOS/serenity/pull/3478
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
Reference in a new issue