]> cloud.milkyroute.net Git - dolphin.git/commit
Tabs: ensure to have folder icons for remote folders
authorMéven Car <meven29@gmail.com>
Tue, 24 Nov 2020 17:07:56 +0000 (18:07 +0100)
committerNate Graham <nate@kde.org>
Mon, 30 Aug 2021 14:58:08 +0000 (14:58 +0000)
commit653d5714a7690bd2dca36a39fc92c0ab1926fab5
tree5d818b129dd6fa9acf39c68d2028f40ebe47ac8a
parentb712c9fc4631c85c469e3ff64d67f4abc9a8a542
Tabs: ensure to have folder icons for remote folders

KIO::iconForUrl relies on filename to find the icon for remote files.
Appending / at the end of the filename allows it to interpret it as
a folder.

This causes inconsistent tab icons.

To reproduce:

Open in a tab a url on a smb or sftp folder, i.e sftp:/my-server/photos

Before:
Icon is a cloud.

After:
Icon is a folder

Previously a folder icon could be presented if the tab was first opened
with a url with a trailing /
src/dolphintabwidget.cpp
src/tests/dolphinmainwindowtest.cpp