From 8a21c528ad9721eba2e111a468a9542bb87b53d6 Mon Sep 17 00:00:00 2001 From: pkotzbach <56219881+pkotzbach@users.noreply.github.com> Date: Mon, 14 Sep 2020 20:55:07 +0200 Subject: LibGUI: Minor consistency cleanup in AbstractView::set_cursor() (#3478) --- Libraries/LibGUI/AbstractView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries') 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); -- cgit v1.2.3