Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:belphegor_belbel:KDE3
kdelibs3
kdelibs-trinity-fix-root-icon.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdelibs-trinity-fix-root-icon.patch of Package kdelibs3
From 646661d0be690c44355f56ffba873f842b291aa0 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe <mavridisf@gmail.com> Date: Fri, 26 Mar 2021 19:02:04 +0200 Subject: iconForURL(): Fix root directory (/) icon. This resolves issue #128. This also resolves issue TDE/tdebase#1. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> --- tdeio/tdeio/kmimetype.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tdeio/tdeio/kmimetype.cpp b/tdeio/tdeio/kmimetype.cpp index 0dd96cb6..8e4eb976 100644 --- a/kio/kio/kmimetype.cpp +++ b/kio/kio/kmimetype.cpp @@ -525,6 +525,10 @@ QString KMimeType::iconForURL( const KURL & _url, mode_t _mode ) // root of protocol: if we found nothing, revert to mimeTypeIcon (which is usually "folder") if ( _url.path().length() <= 1 && ( i == unknown || i.isEmpty() ) ) i = mimeTypeIcon; + + // special case: root directory (/) -- Gitea issue #128 + if ( _url == KURL("file:///") ) + i = "folder_red"; } return i; } -- cgit v1.2.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor