diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-10-20 12:36:00 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-10-20 13:36:01 (GMT) |
commit | ea69ae0df02de27ec0f0a1a9b0a122655445fc01 (patch) | |
tree | 77e17aefe2f7d41cb262c0ec44e6e9a1ec585c93 /src | |
parent | 064c5714c2167fb2ddfb4f1ab2f706282444884f (diff) | |
download | Qt-ea69ae0df02de27ec0f0a1a9b0a122655445fc01.zip Qt-ea69ae0df02de27ec0f0a1a9b0a122655445fc01.tar.gz Qt-ea69ae0df02de27ec0f0a1a9b0a122655445fc01.tar.bz2 |
Fix QFileDialog regression in symbian
Symbian now follows the same convention as windows, where "c:" means the
working directory on the C: drive. As a result, the path "c:/" needs to be
passed to QFileInfoGatherer when getting info for the root directory.
This code already existed but only enabled for windows - now enabled for
symbian as well.
Reviewed-By: Markus Goetz
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/dialogs/qfilesystemmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qfilesystemmodel.cpp b/src/gui/dialogs/qfilesystemmodel.cpp index b8aafe3..be4261d 100644 --- a/src/gui/dialogs/qfilesystemmodel.cpp +++ b/src/gui/dialogs/qfilesystemmodel.cpp @@ -1290,7 +1290,7 @@ QString QFileSystemModelPrivate::filePath(const QModelIndex &index) const if ((fullPath.length() > 2) && fullPath[0] == QLatin1Char('/') && fullPath[1] == QLatin1Char('/')) fullPath = fullPath.mid(1); #endif -#if defined(Q_OS_WIN) +#if defined(Q_OS_WIN) || defined(Q_OS_SYMBIAN) if (fullPath.length() == 2 && fullPath.endsWith(QLatin1Char(':'))) fullPath.append(QLatin1Char('/')); #endif |