Fixed QFile::link behaviour for WinCE devices.
authorJanne Anttila <janne.anttila@digia.com>
Thu, 24 Nov 2011 08:31:10 +0000 (10:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 13 Jan 2012 12:23:20 +0000 (13:23 +0100)
In WEC7 both arguments given for ScCreateShortcut needs to be given in
Windows format. Apparently older WinCE devices has accepted also Unix
format but this is not anymore true for WEC7. The Windows format works
for older WinCE versions as well.

Change-Id: Ic1f394e20bae8ad42acb46929d3ff4af92daf310
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
src/corelib/io/qfsfileengine_win.cpp

index d0676a0..5dc96ea 100644 (file)
@@ -661,6 +661,7 @@ bool QFSFileEngine::link(const QString &newName)
 #endif // QT_NO_LIBRARY
 #else
     QString linkName = newName;
+    linkName.replace(QLatin1Char('/'), QLatin1Char('\\'));
     if (!linkName.endsWith(QLatin1String(".lnk")))
         linkName += QLatin1String(".lnk");
     QString orgName = fileName(AbsoluteName).replace(QLatin1Char('/'), QLatin1Char('\\'));