diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-05-07 08:00:28 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-05-07 08:38:10 (GMT) |
commit | f5366aea8594946e78106c5f93ecb2d47f121d32 (patch) | |
tree | 49f1b012c67dd458fbde295de88adb7753e803c5 | |
parent | 9cd2a03b09cbe4b024304b1d5d761b464c6c05e4 (diff) | |
download | Qt-f5366aea8594946e78106c5f93ecb2d47f121d32.zip Qt-f5366aea8594946e78106c5f93ecb2d47f121d32.tar.gz Qt-f5366aea8594946e78106c5f93ecb2d47f121d32.tar.bz2 |
QUrl::fromLocalFile: fix silly mistake: it's fromNativeSeparators, not to
-rw-r--r-- | src/corelib/io/qurl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp index 7b5bfed..67119b5 100644 --- a/src/corelib/io/qurl.cpp +++ b/src/corelib/io/qurl.cpp @@ -5985,7 +5985,7 @@ QUrl QUrl::fromLocalFile(const QString &localFile) { QUrl url; url.setScheme(QLatin1String("file")); - QString deslashified = QDir::toNativeSeparators(localFile); + QString deslashified = QDir::fromNativeSeparators(localFile); // magic for drives on windows if (deslashified.length() > 1 && deslashified.at(1) == QLatin1Char(':') && deslashified.at(0) != QLatin1Char('/')) { |