diff --git a/abstractrunner.cpp b/abstractrunner.cpp index 66ce51f14..2fb7098cc 100644 --- a/abstractrunner.cpp +++ b/abstractrunner.cpp @@ -351,6 +351,8 @@ void AbstractRunner::init() d->setupScriptSupport(); d->script->init(); } + + reloadConfiguration(); } DataEngine *AbstractRunner::dataEngine(const QString &name) const diff --git a/abstractrunner.h b/abstractrunner.h index 77aa9c6bc..1bf19326f 100644 --- a/abstractrunner.h +++ b/abstractrunner.h @@ -439,6 +439,11 @@ class PLASMA_EXPORT AbstractRunner : public QObject Q_INVOKABLE DataEngine *dataEngine(const QString &name) const; protected Q_SLOTS: + /** + * Reimplement this slot to run any initialization routines on first load. + * By default, it calls reloadConfiguration(); for scripted Runners this + * method also sets up the ScriptEngine. + */ void init(); /**