summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-09-23 23:52:39 +0330
committerAndreas Kling <kling@serenityos.org>2020-09-25 23:55:33 +0200
commite250591ff318accc08ae9f085e1fc75978d25c0e (patch)
tree1fc4d0252ce42e4ef7906fa2c6c200015691c677 /Libraries
parent4748248fef2219f2081c0ea86dca5a39bdd3bdaf (diff)
downloadserenity-e250591ff318accc08ae9f085e1fc75978d25c0e.zip
LibGUI: Do not clear the selection on right-click
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibGUI/AbstractView.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}