summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjaanttil <janne.anttila@digia.com>2011-11-24 08:31:10 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-01-31 16:31:38 (GMT)
commit76f2fca9a3bd5b4aa4bde20992adc89fa18f9cec (patch)
treee0d12ef938fcba043c49f159e47f45817b33ea63 /src
parentbacae725e584f51ee2fd83af7bef3e4515de9587 (diff)
downloadQt-76f2fca9a3bd5b4aa4bde20992adc89fa18f9cec.zip
Qt-76f2fca9a3bd5b4aa4bde20992adc89fa18f9cec.tar.gz
Qt-76f2fca9a3bd5b4aa4bde20992adc89fa18f9cec.tar.bz2
Fixed QFile::link behaviour for WinCE devices.
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: Ibea55c5fd8d5a981cdb06e34a20c369bf3b53200 Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qfsfileengine_win.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qfsfileengine_win.cpp b/src/corelib/io/qfsfileengine_win.cpp
index 5c21cb3..8014720 100644
--- a/src/corelib/io/qfsfileengine_win.cpp
+++ b/src/corelib/io/qfsfileengine_win.cpp
@@ -666,6 +666,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('\\'));