summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2011-08-05 08:32:51 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2011-08-11 16:58:10 (GMT)
commit023976f9dd48a3deb947905d32d5fc0692da7318 (patch)
treed7a0ae0920f35cfcee97176b0bad5b7446693b20 /src/corelib
parent19880c1bdf75455b645fb8d5ee12bcb6e37e5aff (diff)
downloadQt-023976f9dd48a3deb947905d32d5fc0692da7318.zip
Qt-023976f9dd48a3deb947905d32d5fc0692da7318.tar.gz
Qt-023976f9dd48a3deb947905d32d5fc0692da7318.tar.bz2
Use fromLocal8Bit for reversing toLocal8Bit
path is converted to 8-bit encoding using toLocal8Bit in QTemporaryFileEngine::open. The reverse operation should be used here.
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/io/qtemporaryfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qtemporaryfile.cpp b/src/corelib/io/qtemporaryfile.cpp
index aae3eb6..d457601 100644
--- a/src/corelib/io/qtemporaryfile.cpp
+++ b/src/corelib/io/qtemporaryfile.cpp
@@ -141,7 +141,7 @@ static int createFileFromTemplate(char *const path,
return -1;
}
#else
- if (!QFileInfo(QLatin1String(path)).exists())
+ if (!QFileInfo(QString::fromLocal8Bit(path)).exists())
return 1;
#endif