mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-08 10:01:53 +00:00
UI/Qt: Do not rely on the URL implicit constructors
This commit is contained in:
parent
0f495421f1
commit
3fb9c37783
Notes:
github-actions[bot]
2025-03-04 21:26:06 +00:00
Author: https://github.com/shannonbooth
Commit: 3fb9c37783
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3668
Reviewed-by: https://github.com/trflynn89
6 changed files with 21 additions and 11 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue