author | Felix Yan
<felixonmars@archlinux.org> 2015-03-13 17:08:49 UTC |
committer | Felix Yan
<felixonmars@archlinux.org> 2015-03-13 17:08:49 UTC |
parent | 8c0e0ef89d5724275a90bc924dec06671359b9c4 |
PKGBUILD | +4 | -10 |
b0a6df6fbd9117b41a7f4e3bc861e20fbadb1956.patch | +0 | -32 |
diff --git a/PKGBUILD b/PKGBUILD index d8c7d48..cb58d00 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,8 +2,8 @@ # Contributor: Andrea Scarpino <andrea@archlinux.org> pkgname=kiconthemes -pkgver=5.7.0 -pkgrel=2 +pkgver=5.8.0 +pkgrel=1 pkgdesc='Support for icon themes' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/frameworks/kiconthemes' @@ -11,17 +11,11 @@ license=('LGPL') depends=('qt5-svg' 'kconfigwidgets' 'kitemviews') makedepends=('extra-cmake-modules' 'python') groups=('kf5') -source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz" - 'b0a6df6fbd9117b41a7f4e3bc861e20fbadb1956.patch') -md5sums=('d41b5a4f68e350b1d36e05c99f060e53' - 'd0b13de27754ed275b0a6ab8d41eb47a') +source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz") +md5sums=('bebd631369a52c8ce3b168f033688a8d') prepare() { mkdir -p build - - cd ${pkgname}-${pkgver} - # FS#43940 - patch -p1 -i ../b0a6df6fbd9117b41a7f4e3bc861e20fbadb1956.patch } build() { diff --git a/b0a6df6fbd9117b41a7f4e3bc861e20fbadb1956.patch b/b0a6df6fbd9117b41a7f4e3bc861e20fbadb1956.patch deleted file mode 100644 index 8ad758d..0000000 --- a/b0a6df6fbd9117b41a7f4e3bc861e20fbadb1956.patch +++ /dev/null @@ -1,32 +0,0 @@ -commit b0a6df6fbd9117b41a7f4e3bc861e20fbadb1956 -Author: Olivier Goffart <ogoffart@woboq.com> -Date: Tue Feb 17 15:24:08 2015 +0100 - - Fix QIcon::fromTheme(xxx, someFallback) would not return the fallback - - because KIconEngine::availableSize always return something even if the icon - is not there - - BUG: 342906 - REVIEW: 122608 - -diff --git a/src/kiconengine.cpp b/src/kiconengine.cpp -index 530403e..6dff533 100644 ---- a/src/kiconengine.cpp -+++ b/src/kiconengine.cpp -@@ -111,6 +111,15 @@ QList<QSize> KIconEngine::availableSizes(QIcon::Mode mode, QIcon::State state) c - { - Q_UNUSED(mode); - Q_UNUSED(state); -+ -+ if (!mIconLoader) { -+ return QList<QSize>(); -+ } -+ -+ if (mIconLoader->iconPath(mIconName, KIconLoader::Desktop, KIconLoader::MatchBest).isEmpty()) { -+ return QList<QSize>(); -+ } -+ - return QList<QSize>() << QSize(16, 16) - << QSize(22, 22) - << QSize(32, 32)