Do not show path info the Properties dialog edit box
Review Request #103594 - Created Dec. 31, 2011 and submitted
The attached patch fixes the issue where searching for a file name in Find File dialog, and attempting to rename it using the properties dialog shows the relative path of to the file instead of just the filename.
* Open Konqueror * Go to your home directory. * Launch the find file dialog and search for a file that resides inside one of those folder in your home directory. * Right click on the file listed and select Properties. * Check the name of the file displayed before and after the patch. * To verify the patch works, change the name of the file.
I don't like it very much (the whole find file stuff and its handling of relative paths is messy - I blame myself), but I can't think of a better way for now, nor of a case where we wouldn't want this. Maybe split it in two lines though, one line calling .name() -- with the comment why, and one line extracting fileName(), with a reference to the bug report. I trust that you also tested it in the standard case, where name() contains no slash.