diff options
-rw-r--r-- | Userland/Libraries/LibGUI/AbstractView.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/AbstractView.cpp b/Userland/Libraries/LibGUI/AbstractView.cpp index 8ad6ba9d3a..b267a8f861 100644 --- a/Userland/Libraries/LibGUI/AbstractView.cpp +++ b/Userland/Libraries/LibGUI/AbstractView.cpp @@ -493,6 +493,8 @@ void AbstractView::set_cursor(ModelIndex index, SelectionUpdate selection_update if (!m_selection.contains(index)) clear_selection(); } else if (selection_update == SelectionUpdate::Shift) { + if (!selection_start_index().is_valid()) + set_selection_start_index(index); select_range(index); } |