diff options
author | Andreas Kling <kling@serenityos.org> | 2023-04-23 20:59:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-25 14:48:40 +0200 |
commit | 411d36719e8ee562bede1a6520891df4e43992f2 (patch) | |
tree | d4c0d4927bc2b4d1212756858fa3239ce80be5e0 /Ladybird/WebContentView.cpp | |
parent | 1587caef842c66ed382fc75c8f116d09ea7acc06 (diff) | |
download | serenity-411d36719e8ee562bede1a6520891df4e43992f2.zip |
LibCore: Simplify Core::Notifier by only allowing one event type
Not a single client of this API actually used the event mask feature to
listen for readability AND writability.
Let's simplify the API and have only one hook: on_activation.
Diffstat (limited to 'Ladybird/WebContentView.cpp')
-rw-r--r-- | Ladybird/WebContentView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index 14ce3974f7..0c3e3948d7 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -610,7 +610,7 @@ void WebContentView::create_client(WebView::EnableCallgrindProfiling enable_call QObject::connect(&m_web_content_notifier, &QSocketNotifier::activated, [new_client = new_client.ptr()] { if (auto notifier = new_client->socket().notifier()) - notifier->on_ready_to_read(); + notifier->on_activation(); }); struct DeferredInvokerQt final : IPC::DeferredInvoker { |