diff options
Diffstat (limited to 'Libraries/LibGUI/GAbstractView.cpp')
-rw-r--r-- | Libraries/LibGUI/GAbstractView.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Libraries/LibGUI/GAbstractView.cpp b/Libraries/LibGUI/GAbstractView.cpp index b979d6d491..9c05e72505 100644 --- a/Libraries/LibGUI/GAbstractView.cpp +++ b/Libraries/LibGUI/GAbstractView.cpp @@ -191,10 +191,9 @@ void GAbstractView::mousedown_event(GMouseEvent& event) m_selection.clear(); } else if (event.modifiers() & Mod_Ctrl) { m_selection.toggle(index); - } else if (event.button() == GMouseButton::Left && !m_model->drag_data_type().is_null()) { + } else if (event.button() == GMouseButton::Left && m_selection.contains(index) && !m_model->drag_data_type().is_null()) { // We might be starting a drag, so don't throw away other selected items yet. m_might_drag = true; - m_selection.add(index); } else { m_selection.set(index); } |