summaryrefslogtreecommitdiffstats
path: root/scriptingplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scriptingplugin.cpp')
-rw-r--r--scriptingplugin.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scriptingplugin.cpp b/scriptingplugin.cpp
index 9fa44e3..0f247cb 100644
--- a/scriptingplugin.cpp
+++ b/scriptingplugin.cpp
@@ -71,6 +71,12 @@ void ScriptingPlugin::extensionsInitialized()
bool ScriptingPlugin::delayedInitialize()
{
+ // Load init script
+ const QString initScript = m_scriptManager->defaultDirectory() + QLatin1String("/init.qs");
+ if ( QFile::exists(initScript) )
+ m_scriptManager->runFile(initScript);
+
+ // If a startup script is specified, load that.
if ( m_startUpScript.isNull() )
return false;
if (!QFileInfo(m_startUpScript).exists())