mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Fix loading of SpeedDial userscript
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
0c3214d1ba
commit
6ed4af8197
@ -63,8 +63,10 @@ void ExternalJsObject::unregisterExtraObject(QObject *object)
|
|||||||
|
|
||||||
QObject *ExternalJsObject::speedDial() const
|
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 nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
return mApp->plugins()->speedDial();
|
return mApp->plugins()->speedDial();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user