summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/AbstractView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/AbstractView.cpp')
-rw-r--r--Libraries/LibGUI/AbstractView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibGUI/AbstractView.cpp b/Libraries/LibGUI/AbstractView.cpp
index e6a169fcb7..e2ed2c9698 100644
--- a/Libraries/LibGUI/AbstractView.cpp
+++ b/Libraries/LibGUI/AbstractView.cpp
@@ -73,6 +73,7 @@ void AbstractView::did_update_model(unsigned flags)
stop_editing();
m_edit_index = {};
m_hovered_index = {};
+ m_cursor_index = {};
if (!model() || (flags & GUI::Model::InvalidateAllIndexes)) {
clear_selection();
} else {