D9610: Revive folderpanel when outside $HOME

Michael Heidelbach noreply at phabricator.kde.org
Tue Jan 2 18:21:22 GMT 2018


michaelh added a comment.


  When navigating outside home
  
  panels/folders/folderspanel.cpp:
  
    332 baseUrl = QUrl::fromLocalFile(QDir::rootPath());       // = "file:///"
  
  this eventually becomes
  
    m_dirLister->url()       // = "file:///"
  
  the last slash is not a trailing slash but the root directory, consequently
  
    url().adjusted(QUrl::StripTrailingSlash)
  
  does not remove it (I guess).
  
    651  urlToExpand.setPath(urlToExpand.path() + '/' + subDirs.at(i));
  
  appends a 4th '/' resulting in "file:////<subdir>" which does not exist.

REPOSITORY
  R318 Dolphin

REVISION DETAIL
  https://phabricator.kde.org/D9610

To: michaelh, #dolphin
Cc: elvisangelaccio, ngraham, anthonyfieroni, michaelh, spoorun, navarromorales, isidorov, firef, andrebarros, emmanuelp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20180102/f27a0a2e/attachment.htm>


More information about the kfm-devel mailing list