Use fromLocal8Bit for reversing toLocal8Bit

path is converted to 8-bit encoding using toLocal8Bit in
QTemporaryFileEngine::open. The reverse operation should be used here.
(cherry picked from commit 023976f9dd48a3deb947905d32d5fc0692da7318)

Change-Id: Idb4c1ca3415300367c46a09d68df640e17b7bfdc
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
This commit is contained in:
João Abecasis 2011-08-05 10:32:51 +02:00 committed by Qt by Nokia
parent d2b16043ef
commit 1ef167f050

View File

@ -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