diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2011-08-05 08:32:51 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2011-08-11 16:58:10 (GMT) |
commit | 023976f9dd48a3deb947905d32d5fc0692da7318 (patch) | |
tree | d7a0ae0920f35cfcee97176b0bad5b7446693b20 /src/corelib | |
parent | 19880c1bdf75455b645fb8d5ee12bcb6e37e5aff (diff) | |
download | Qt-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.cpp | 2 |
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 |