Bug 337557

Summary: "Cannot open file" error when entering absolute path in file dialog
Product: [Frameworks and Libraries] frameworks-kio Reporter: Loïc Yhuel <loic.yhuel>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs, simonandric5
Priority: NOR    
Version: 5.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Loïc Yhuel 2014-07-18 04:00:33 UTC
In a file dialog, when entering an absolute path in "Name" field and pressing enter (either a directory to navigate to, or a file to open), I get a "Cannot open file" dialog, with an error like "The file "/home/" could not be found".
It works with an absolute path url, like "file:///home".

Seen with both KFileDialog (for example kfontview) and KDEPlatformFileDialog (for example qtcreator).

Note that :
 - It worked on KDE4
 - The default Qt5.3 file dialog (ie when not using KDEPlatformTheme), has the opposite behavior (/home works, file:///home doesn't work).
Comment 1 Maarten De Meyer 2014-09-06 13:44:28 UTC
Git commit a77076ad8799174637cf452e5bb3e4097b34916e by Maarten De Meyer.
Committed on 05/09/2014 at 18:05.
Pushed by demeyer into branch 'master'.

Fix QUrl porting error.
REVIEW: 120071

M  +1    -1    src/filewidgets/kfilewidget.cpp

http://commits.kde.org/kio/a77076ad8799174637cf452e5bb3e4097b34916e