diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-26 14:16:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-26 17:00:40 +0200 |
commit | e418bdf95b04b8c9e7528dd5c554e91c4245d092 (patch) | |
tree | 07e5bf6459e663814ec635962a078b6e69284a87 /Libraries | |
parent | 5b46835a9d5b425cfcaee4d7563d85e4e45a9d89 (diff) | |
download | serenity-e418bdf95b04b8c9e7528dd5c554e91c4245d092.zip |
LibGUI: Don't update key column when clicking vertical headers
Vertical headers are only concerned with rows, after all.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibGUI/HeaderView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibGUI/HeaderView.cpp b/Libraries/LibGUI/HeaderView.cpp index a9ddca5581..c264b0661b 100644 --- a/Libraries/LibGUI/HeaderView.cpp +++ b/Libraries/LibGUI/HeaderView.cpp @@ -202,7 +202,7 @@ void HeaderView::mouseup_event(MouseEvent& event) return; } if (m_pressed_section != -1) { - if (section_rect(m_pressed_section).contains(event.position())) { + if (m_orientation == Gfx::Orientation::Horizontal && section_rect(m_pressed_section).contains(event.position())) { auto new_sort_order = SortOrder::Ascending; if (m_table_view.key_column() == m_pressed_section) new_sort_order = m_table_view.sort_order() == SortOrder::Ascending |