From 6ed4af8197b0283f8af118e378bcc1b45238fb20 Mon Sep 17 00:00:00 2001 From: Juraj Oravec Date: Wed, 20 Dec 2023 09:36:43 +0100 Subject: [PATCH] Fix loading of SpeedDial userscript Signed-off-by: Juraj Oravec --- src/lib/webengine/javascript/externaljsobject.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/webengine/javascript/externaljsobject.cpp b/src/lib/webengine/javascript/externaljsobject.cpp index 0d7cdddac..e0a044ad8 100644 --- a/src/lib/webengine/javascript/externaljsobject.cpp +++ b/src/lib/webengine/javascript/externaljsobject.cpp @@ -63,8 +63,10 @@ void ExternalJsObject::unregisterExtraObject(QObject *object) QObject *ExternalJsObject::speedDial() const { - if (m_page->url().toString() != QL1S("falkon:speeddial")) + if (m_page->url().toString() != QL1S("falkon:speeddial") + && (m_page->requestedUrl().toString() != QL1S("falkon:speeddial") && !m_page->url().toString().isEmpty())) { return nullptr; + } return mApp->plugins()->speedDial(); }