| Summary: | QIcon::themeIcon(icon)) always returns default icon | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kiconthemes | Reporter: | Olivier Churlaud <olivier> |
| Component: | general | Assignee: | Christoph Feck <cfeck> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kdelibs-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.23.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kiconthemes/0abf1b7a148cf6b27caea01a329631e0f1daa983 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Olivier Churlaud
2016-07-05 22:44:12 UTC
It might be a Qt issue, but I cannot test without plasma. Git commit 0abf1b7a148cf6b27caea01a329631e0f1daa983 by David Rosca. Committed on 12/07/2016 at 07:54. Pushed by drosca into branch 'master'. KIconEngine: Fix QIcon::hasThemeIcon always returning true QIcon::hasThemeIcon(name) checks if QIcon::name() == name, so icon engine must return empty string when icon doesn't exist. Also implement IsNullHook for Qt 5.7. Comes with autotest. REVIEW: 128397 M +1 -0 autotests/CMakeLists.txt A +75 -0 autotests/kiconengine_unittest.cpp [License: LGPL (v2+)] M +15 -0 src/kiconengine.cpp M +2 -0 src/kiconengine.h http://commits.kde.org/kiconthemes/0abf1b7a148cf6b27caea01a329631e0f1daa983 |