mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
LibGUI: Don't return early from AbstractView::set_cursor()
Calling set_cursor() with the same cursor index is not necessarily a no-op! For example, we may want to toggle the selection.
This commit is contained in:
@@ -425,9 +425,6 @@ void AbstractView::set_key_column_and_sort_order(int column, SortOrder sort_orde
|
||||
|
||||
void AbstractView::set_cursor(ModelIndex index, SelectionUpdate selection_update, bool scroll_cursor_into_view)
|
||||
{
|
||||
if (m_cursor_index == index)
|
||||
return;
|
||||
|
||||
if (!model() || !index.is_valid()) {
|
||||
m_cursor_index = {};
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user