openPath() doesn't work for non-child directories
Bug #1195531 reported by
Michael Spencer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu File Manager App |
Fix Released
|
Low
|
Carlos Jose Mazieri |
Bug Description
In FolderListModel, openPath() doesn't work correctly when trying to open a directory that isn't a child of the current directory.
For example, if the current directory is "/home/user",
openPath(
openPath("/home") does not.
Related branches
Changed in ubuntu-filemanager-app: | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Carlos Jose Mazieri (carlos-mazieri) |
Changed in ubuntu-filemanager-app: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-filemanager-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Why can't you just let the user enter the full path and then try to set FolderListModel's path property? Maybe you can detect an error and alert the user somehow, otherwise the ListView should reload with the new destination.
One possible way you could test for an error would be to use the FolderListModel as a delegate (see lp:music-app which uses one) and parse the path (let's say it is /home/user/dir/) starting with "/" set as the path property. Then call openPath() with "home", if there is no error set the path property with "/home" and call openPath(), etc.