diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2011-08-26 09:03:55 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2011-08-26 12:10:38 (GMT) |
commit | 13899108ed57548d3c4f40e595481f8ee76e4fcf (patch) | |
tree | a682aed90cc20c1fab4d6ab0c7c6e38aef67d808 /src/corelib | |
parent | 07afddbf4bc029f776810381c7317fffa100eb60 (diff) | |
download | Qt-13899108ed57548d3c4f40e595481f8ee76e4fcf.zip Qt-13899108ed57548d3c4f40e595481f8ee76e4fcf.tar.gz Qt-13899108ed57548d3c4f40e595481f8ee76e4fcf.tar.bz2 |
We prefer capitalized drive letters, make it so sooner
Reviewed-by: Prasanth Ullattil
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/io/qfilesystemengine_win.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/io/qfilesystemengine_win.cpp b/src/corelib/io/qfilesystemengine_win.cpp index f704fc3..993c946 100644 --- a/src/corelib/io/qfilesystemengine_win.cpp +++ b/src/corelib/io/qfilesystemengine_win.cpp @@ -1052,11 +1052,12 @@ QString QFileSystemEngine::tempPath() } if (ret.isEmpty()) { #if !defined(Q_OS_WINCE) - ret = QLatin1String("c:/tmp"); + ret = QLatin1String("C:/tmp"); #else ret = QLatin1String("/Temp"); #endif - } + } else if (ret.length() >= 2 && ret[1] == QLatin1Char(':')) + ret[0] = ret.at(0).toUpper(); // Force uppercase drive letters. return ret; } |