make sure scripts are executed sorted

This commit is contained in:
Marco Martin 2012-06-25 14:37:08 +02:00
parent 5f767127c7
commit 7c6d8e8377

View File

@ -677,6 +677,8 @@ QStringList ScriptEngine::defaultLayoutScripts()
{
const QString appName = KGlobal::activeComponent().aboutData()->appName();
QStringList scripts = KGlobal::dirs()->findAllResources("data", appName + "/init/*.js");
scripts.sort();
QStringList scriptPaths;
if (scripts.isEmpty()) {