UI/Qt: Unregister WebContentView instances just once
We already unregister the view in the ViewImplementation destructor. We do not need to do so again in the WebContentView destructor.
This commit is contained in:
parent
fa605ef225
commit
62fa84865d
Notes:
github-actions[bot]
2024-08-03 19:54:19 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/62fa84865d6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/946 Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 1 additions and 5 deletions
|
@ -140,11 +140,7 @@ WebContentView::WebContentView(QWidget* window, RefPtr<WebView::WebContentClient
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
WebContentView::~WebContentView()
|
WebContentView::~WebContentView() = default;
|
||||||
{
|
|
||||||
if (m_client_state.client)
|
|
||||||
m_client_state.client->unregister_view(m_client_state.page_index);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Web::UIEvents::MouseButton get_button_from_qt_event(QSinglePointEvent const& event)
|
static Web::UIEvents::MouseButton get_button_from_qt_event(QSinglePointEvent const& event)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue