From 5e4b608751dca63d19c334ddb332b4e19741d175 Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 28 Aug 2022 08:46:08 +0300 Subject: Remove source_location --- src/application.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/application.cpp') diff --git a/src/application.cpp b/src/application.cpp index 63263278..d18c0231 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -391,11 +391,12 @@ RekonqView *Application::newView(const QUrl &url, RekonqWindow *window) #ifdef QT_DEBUG if (url.isEmpty()) view = new RekonqView_fake(window); - else #endif + + if (view == nullptr) for (const auto &plugin : m_plugins) { if (plugin->hasScheme(url.scheme())) { - view = plugin->interface()->view(url); + view = plugin->interface()->view(url.isEmpty() ? m_settings->value("homepage").toUrl() : url); break; } } -- cgit v1.2.1