https://bugs.kde.org/show_bug.cgi?id=429530

            Bug ID: 429530
           Summary: KIO::iconNameForUrl() returns wrong icon for mimetype
           Product: frameworks-kio
           Version: 5.76.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kio-bugs-n...@kde.org
          Reporter: alexander.reinho...@kdemail.net
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY


STEPS TO REPRODUCE
Use KIO::iconNameForUrl() to get icons for files located on a SMB server.

OBSERVED RESULT
KIO::iconNameForUrl() returns "network-workgroup" as icon name.

EXPECTED RESULT
The correct icon name for the mimetype of the file is returned. 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76
Qt Version: 5.15.1

ADDITIONAL INFORMATION

This code snippet

QIcon icon = KDE::icon(KIO::iconNameForUrl(url));

yields the wrong icon for the mimetype for files on a SMB server, because
KIO::iconNameForUrl(url) always returns "network-workgroup". Folders are
handled correctly, though.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to