KUrl(QString) fix

Leonardo Stern leonardo.stern at gmail.com
Wed Dec 20 17:45:19 GMT 2006


> Leonardo Stern schrieb:
> > Greetings,
> >
> > KUrl kurl("file:///foo/bar")
> > path() == "/foo/bar"  (not "foo/bar).
> > .
> unfortunally this patch breaks support for KUrl
> kurl("file:///C:/foo/bar") .

But, in case of

path() = "foo/bar" instead of "/foo/bar"

KUrl (and QUrl) interprets kurl as a relative path and breaks KUrl::cleanPath.

How to fix KUrl ? using some hack fix ?

regards,
Leonardo Stern




More information about the kde-core-devel mailing list