diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-08-25 11:43:10 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-08-25 11:43:10 (GMT) |
commit | f9b040556368001b367731e7ea65227956952e25 (patch) | |
tree | a23387b778b511e295abec60fa4223736143e392 /src/corelib/io | |
parent | 931d47db10ca8b8ebf564c4b6537e31370b7f53c (diff) | |
download | Qt-f9b040556368001b367731e7ea65227956952e25.zip Qt-f9b040556368001b367731e7ea65227956952e25.tar.gz Qt-f9b040556368001b367731e7ea65227956952e25.tar.bz2 |
Fix QFileSystemEntry autotests for Windows
Reviewed-by: Thomas Zander
Diffstat (limited to 'src/corelib/io')
-rw-r--r-- | src/corelib/io/qfilesystementry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfilesystementry.cpp b/src/corelib/io/qfilesystementry.cpp index 2d6740e..bed5435 100644 --- a/src/corelib/io/qfilesystementry.cpp +++ b/src/corelib/io/qfilesystementry.cpp @@ -122,7 +122,7 @@ bool QFileSystemEntry::isAbsolute() const { resolveFilePath(); return (!m_filePath.isEmpty() && (m_filePath[0].unicode() == '/') -#if defined(Q_FS_FAT) || defined(Q_OS_OS2EMX) || defined(Q_OS_SYMBIAN) +#if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN) || (m_filePath.length() >= 2 && ((m_filePath[0].isLetter() && m_filePath[1] == QLatin1Char(':')) || (m_filePath.at(0) == QLatin1Char('/') && m_filePath.at(1) == QLatin1Char('/')))) |