1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Fix loading of SpeedDial userscript

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2023-12-20 09:36:43 +01:00
parent 0c3214d1ba
commit 6ed4af8197
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -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();
}