diff options
author | pkotzbach <56219881+pkotzbach@users.noreply.github.com> | 2020-09-14 20:55:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-14 20:55:07 +0200 |
commit | 8a21c528ad9721eba2e111a468a9542bb87b53d6 (patch) | |
tree | 7d0bcb76ff3240dd3f39325c71d81c874976a6f4 /Libraries/LibGUI/AbstractView.cpp | |
parent | 2b17d980cf1f585402a1f8fc4597bf8a1369548d (diff) | |
download | serenity-8a21c528ad9721eba2e111a468a9542bb87b53d6.zip |
LibGUI: Minor consistency cleanup in AbstractView::set_cursor() (#3478)
Diffstat (limited to 'Libraries/LibGUI/AbstractView.cpp')
-rw-r--r-- | Libraries/LibGUI/AbstractView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/AbstractView.cpp b/Libraries/LibGUI/AbstractView.cpp index 9c4aeb4b48..9c3c9c49df 100644 --- a/Libraries/LibGUI/AbstractView.cpp +++ b/Libraries/LibGUI/AbstractView.cpp @@ -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); |