[Help] BR #69086 - KURL and "."

Christian Loose christian.loose at hamburg.de
Wed Nov 26 19:12:57 GMT 2003


Hi everybody,

I need your help! Please take a look at 
http://bugs.kde.org/show_bug.cgi?id=69086.

Cervisia accepts a path or URL as an command-line argument. I convert it to a 
KURL with the static method KURL::fromPathOrURL(). 

Afterwards I have a check in the openURL() method of the KPart if the URL is 
local (KURL::isLocalFile()). This check fails when the user passes "." to 
Cervisia. 

Am I doing something wrong?

It seems as if the statement "if( text[0] == '/' )" in fromPathOrURL() should 
be extended to handle the "." or ".." cases.

Thanks in advance!

-- 
Christian Loose
Cervisia maintainer - http://www.kde.org/apps/cervisia





More information about the kde-core-devel mailing list