mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibWebView+Ladybird: Remove duplicate WebContent callback
We have on_navigate_back + on_back_button and on_navigate_forward + on_forward_button. Remove the *_button variants.
This commit is contained in:
committed by
Andreas Kling
parent
1adf06c9f0
commit
9608bfb576
@@ -324,11 +324,11 @@ void WebContentView::mouseReleaseEvent(QMouseEvent* event)
|
||||
auto button = get_button_from_qt_event(*event);
|
||||
|
||||
if (event->button() & Qt::MouseButton::BackButton) {
|
||||
if (on_back_button)
|
||||
on_back_button();
|
||||
if (on_navigate_back)
|
||||
on_navigate_back();
|
||||
} else if (event->button() & Qt::MouseButton::ForwardButton) {
|
||||
if (on_forward_button)
|
||||
on_forward_button();
|
||||
if (on_navigate_forward)
|
||||
on_navigate_forward();
|
||||
}
|
||||
|
||||
if (button == 0) {
|
||||
|
||||
Reference in New Issue
Block a user