Commit 47e4caa3 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

WelcomePage: crash fix for windows





Change-Id: I77d69bdd11487388163723dffa56a6690ac14240
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 30c21397
......@@ -136,9 +136,9 @@ Item {
var oldIndex = 0;
while (index != -1 && index < 40) {
oldIndex = index;
index = path.indexOf("/", index + 1);
index = path.indexOf("/", oldIndex + 1);
if (index == -1)
index = path.indexOf("\\", index + 1);
index = path.indexOf("\\", oldIndex + 1);
}
var newPath = path.substr(0, oldIndex + 1) + "\n"
+ path.substr(oldIndex + 1, path.length - oldIndex - 1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment