From 7c6d8e8377ec05b325cb5bbfb914d41f66f1a8b3 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 25 Jun 2012 14:37:08 +0200 Subject: [PATCH] make sure scripts are executed sorted --- scriptengine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scriptengine.cpp b/scriptengine.cpp index 0fb2d38ae..777a56dfc 100644 --- a/scriptengine.cpp +++ b/scriptengine.cpp @@ -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()) {