summaryrefslogtreecommitdiff
path: root/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-06 19:44:18 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-06 19:44:18 +0100
commit09ecef629903afb87d3dc75847a4471c94b20d42 (patch)
tree8d159bbc4dc163e537286b553b0e87d2e0c354c3 /LibGUI
parentf3341d2ae7c99f0c164244b10836840ff715e97d (diff)
downloadserenity-09ecef629903afb87d3dc75847a4471c94b20d42.zip
GTableView: Ignore right clicks for now.
Diffstat (limited to 'LibGUI')
-rw-r--r--LibGUI/GTableView.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/LibGUI/GTableView.cpp b/LibGUI/GTableView.cpp
index 01a517b844..11bee41fd1 100644
--- a/LibGUI/GTableView.cpp
+++ b/LibGUI/GTableView.cpp
@@ -92,8 +92,8 @@ void GTableView::mousedown_event(GMouseEvent& event)
return;
}
- auto adjusted_position = event.position().translated(0, m_vertical_scrollbar->value());
if (event.button() == GMouseButton::Left) {
+ auto adjusted_position = event.position().translated(0, m_vertical_scrollbar->value());
for (int i = 0; i < item_count(); ++i) {
if (row_rect(i).contains(adjusted_position)) {
m_model->set_selected_index({ i, 0 });
@@ -101,9 +101,9 @@ void GTableView::mousedown_event(GMouseEvent& event)
return;
}
}
+ m_model->set_selected_index({ });
+ update();
}
- m_model->set_selected_index({ });
- update();
}
void GTableView::paint_event(GPaintEvent& event)