diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-15 17:02:02 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-15 17:02:44 +0100 |
commit | d4a570d576f7b8aeb9f9a7656b57a725d9bb2fbe (patch) | |
tree | 9c201c9761a68ccdb73f8828cb6c28310a9d7d89 /Libraries/LibGUI/GTreeView.cpp | |
parent | 05a441afb21d436749998b12ae61dfbc95aea52c (diff) | |
download | serenity-d4a570d576f7b8aeb9f9a7656b57a725d9bb2fbe.zip |
LibGUI: Fix GTreeView not showing the context menu
This logic is all taken care of by GAbstractColumnView now, so we can
simply delete GTreeView::context_menu_event(). :^)
Fixes an issue mentioned in #826
Diffstat (limited to 'Libraries/LibGUI/GTreeView.cpp')
-rw-r--r-- | Libraries/LibGUI/GTreeView.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Libraries/LibGUI/GTreeView.cpp b/Libraries/LibGUI/GTreeView.cpp index cd97258d85..13142ae39c 100644 --- a/Libraries/LibGUI/GTreeView.cpp +++ b/Libraries/LibGUI/GTreeView.cpp @@ -393,19 +393,6 @@ void GTreeView::keydown_event(GKeyEvent& event) } } -void GTreeView::context_menu_event(GContextMenuEvent& event) -{ - if (!model()) - return; - bool is_toggle; - auto index = index_at_event_position(event.position(), is_toggle); - if (index.is_valid()) { - if (on_context_menu_request) - on_context_menu_request(index, event); - } - GAbstractColumnView::context_menu_event(event); -} - int GTreeView::item_count() const { int count = 0; |