diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2017-07-28 13:25:50 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2018-03-12 18:11:33 +0000 |
commit | 54190595efe55bdbb647c69fa7b0a43d3f84dd68 (patch) | |
tree | 87106b7f56c4c56211cfb5cbdd1474f011661515 /src/gui/kernel/qwindowsysteminterface.cpp | |
parent | 3ae03c3585df7247f5699eeaa70e1bedf47f6d5b (diff) |
Make sure QDir::absoluteFilePath("/dir") includes a drive on MS
QDir::isAbsolutePath(name) thinks any path starting with a slash is
absolute; however, to return a valid absolute path, we need to put a
drive prefix onto such a name. So use QFileSystemEntry::isAbsolute()
for that check (it believes in the need for a drive, or UNC prefix)
and handle the absolute-but-for-drive case when it arises.
Add a regression test and make related changes to existing tests.
Task-number: QTBUG-50839
Change-Id: Id5d2b2586bb1423fa2d9375a298a4bb5241cffe0
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/kernel/qwindowsysteminterface.cpp')
0 files changed, 0 insertions, 0 deletions