UI/Qt: Do not rely on the URL implicit constructors

This commit is contained in:
Shannon Booth 2025-02-22 21:51:15 +13:00 committed by Tim Flynn
parent 0f495421f1
commit 3fb9c37783
Notes: github-actions[bot] 2025-03-04 21:26:06 +00:00
6 changed files with 21 additions and 11 deletions

View file

@ -73,7 +73,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
Core::EventLoopManager::install(*new WebView::EventLoopManagerQt);
auto app = Ladybird::Application::create(arguments, ak_url_from_qstring(Ladybird::Settings::the()->new_tab_page()));
auto url = ak_url_from_qstring(Ladybird::Settings::the()->new_tab_page());
VERIFY(url.has_value());
auto app = Ladybird::Application::create(arguments, url.release_value());
static_cast<WebView::EventLoopImplementationQt&>(Core::EventLoop::current().impl()).set_main_loop();
TRY(handle_attached_debugger());