diff options
Diffstat (limited to 'qml/Main.qml')
-rw-r--r-- | qml/Main.qml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qml/Main.qml b/qml/Main.qml index 7d61562..d89472f 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -355,16 +355,16 @@ Window { MouseArea { anchors.fill: parent onClicked: { - //TODO is there a better way? - //find launchersettings application, it is under basicsuite + //Find launchersettings application from appsRoots //There can be several roots which are split with ':' var fileArray = applicationSettings.appsRoot.split(":") for ( var i = 0; i < fileArray.length; i++ ) { var file = fileArray[i] - if ( file.search("basicsuite") > -1 ) { - var prepend = "file://" - file = prepend.concat(file) - file += "/launchersettings" + var prepend = "file://" + file = prepend.concat(file) + file += "/launchersettings" + + if (engine.fileExists(file + "/main.qml")) { engine.launchApplication(file, "main.qml", "Launcher Settings") break } |