diff --git a/src/lib/webkit/javascript/externaljsobject.cpp b/src/lib/webkit/javascript/externaljsobject.cpp index 50b140b9c..adca53625 100644 --- a/src/lib/webkit/javascript/externaljsobject.cpp +++ b/src/lib/webkit/javascript/externaljsobject.cpp @@ -38,7 +38,7 @@ int ExternalJsObject::IsSearchProviderInstalled(const QString &engineURL) return 0; } -QObject* ExternalJsObject::speedDial() +QObject* ExternalJsObject::speedDial() const { return m_onSpeedDial ? mApp->plugins()->speedDial() : 0; } diff --git a/src/lib/webkit/javascript/externaljsobject.h b/src/lib/webkit/javascript/externaljsobject.h index d53466dff..3e75f8a21 100644 --- a/src/lib/webkit/javascript/externaljsobject.h +++ b/src/lib/webkit/javascript/externaljsobject.h @@ -32,7 +32,7 @@ public slots: void AddSearchProvider(const QString &engineUrl); int IsSearchProviderInstalled(const QString &engineURL); - QObject* speedDial(); + QObject* speedDial() const; public: void setOnSpeedDial(bool on);