From e250591ff318accc08ae9f085e1fc75978d25c0e Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Wed, 23 Sep 2020 23:52:39 +0330 Subject: [PATCH] LibGUI: Do not clear the selection on right-click --- Libraries/LibGUI/AbstractView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibGUI/AbstractView.cpp b/Libraries/LibGUI/AbstractView.cpp index 4e98de2a3c..8daaba7721 100644 --- a/Libraries/LibGUI/AbstractView.cpp +++ b/Libraries/LibGUI/AbstractView.cpp @@ -224,7 +224,7 @@ void AbstractView::mousedown_event(MouseEvent& event) } else if (event.button() == MouseButton::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; - } else { + } else if (event.button() != MouseButton::Right) { set_cursor(index, SelectionUpdate::Set); }