When we are navigating in an archive, trying to use the navigator
buttons to list the subdir of a parent folder of the archive was
not working because the protocol would still be 'tar' instead of
'file'.
Details
- Reviewers
- None
- Group Reviewers
Frameworks
In Dolphin, click on a zip file. Then in the URL bar (breadcrumb
mode), try to list the sub directories of the folder containing
that zip file by clicking on the litlle arrow on the right of the
folder's name.
Diff Detail
- Repository
- R241 KIO
- Branch
- arc_urlnavigatorbutton (branched from master)
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 6006 Build 6024: arc lint + arc unit
src/filewidgets/kurlnavigatorbutton.cpp | ||
---|---|---|
414 | When I click a zip file I get this in the URL bar: krarc:/home/gregor/Downloads/kfk_10p.zip/ This could mean that "krarc" should be added to this if statement. |
src/filewidgets/kurlnavigatorbutton.cpp | ||
---|---|---|
414 | What would be the clean way to expose this function ? I wouldn't like to duplicate the code. |
Create KUrlNavigator::isInsideCompressedPath
Use this function instead of comparing the url scheme with tar, zip, ...
src/filewidgets/kurlnavigator.h | ||
---|---|---|
297 | I'd make this function static, since it doesn't depend on the status of a specific KUrlNavigator instance. To do so, isCompressedPath() needs to become a (static) free function. | |
src/filewidgets/kurlnavigatorbutton.cpp | ||
414 |
Sorry for the late reply. One way could be a public static function, either in KUrlNavigator or KUrlNavigatorButton. | |
416 | What if the parent is not a KUrlNavigator? |