Commit b66e59e1 authored by Dawit Alemayehu's avatar Dawit Alemayehu
Browse files

Handle top level directories with a ':' in their names, e.g. /F:, correctly on

non-Windows platforms.

BUG: 194746
FIXED-IN: 4.7.0
REVIEW: 101906
parent 7eebc506
......@@ -872,6 +872,12 @@ QString KUrl::toLocalFile( AdjustPathOption trailing ) const
return trailingSlash(trailing, urlWithoutHost.toLocalFile());
#warning FIXME: Remove #ifdef below once upstream bug, QTBUG-20322, is fixed. Also see BR# 194746.
#ifndef Q_WS_WIN
if (isLocalFile()) {
return trailingSlash(trailing, QUrl::path());
return trailingSlash(trailing, QUrl::toLocalFile());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment