From 7b8435759b90a7c9c63f5e7cf1e2b808c604fa14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Schr=C3=B6der?= Date: Thu, 13 Jan 2011 19:54:34 +0100 Subject: Changes: make the creation of the binary cache file name also work under windows RevBy: Armin Berres --- src/corelib/style/mstylesheetparser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/corelib/style/mstylesheetparser.cpp b/src/corelib/style/mstylesheetparser.cpp index e5e413c7..fc1d0819 100644 --- a/src/corelib/style/mstylesheetparser.cpp +++ b/src/corelib/style/mstylesheetparser.cpp @@ -942,6 +942,9 @@ QString MStyleSheetParserPrivate::createBinaryFilename(const QString &filename) QString absoluteFilePathEncoded(filename); absoluteFilePathEncoded.replace('_', "__"); absoluteFilePathEncoded.replace('/', "_."); + // also replace windows directory separators and the drive letter separator + absoluteFilePathEncoded.replace('\\', "_."); + absoluteFilePathEncoded.replace(':', "_."); binaryFilename += absoluteFilePathEncoded; return binaryFilename; } -- cgit v1.2.3