Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment