diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-11-29 19:37:29 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-11-29 19:59:57 +0100 |
commit | 1ea80d97051243f63b8ea8b128ef02eacfd10c97 (patch) | |
tree | 33c44d42dec513fb561b72a8345ba07ffd2bfc36 /media-gfx/digikam/files | |
parent | net-misc/curl: x86 stable (bug #638734) (diff) | |
download | gentoo-1ea80d97051243f63b8ea8b128ef02eacfd10c97.tar.gz gentoo-1ea80d97051243f63b8ea8b128ef02eacfd10c97.tar.bz2 gentoo-1ea80d97051243f63b8ea8b128ef02eacfd10c97.zip |
media-gfx/digikam: Fix Qt-5.9.3 runtime issue w/ album view
See also: https://bugs.kde.org/show_bug.cgi?id=387373
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'media-gfx/digikam/files')
-rw-r--r-- | media-gfx/digikam/files/digikam-5.7.0-qt-5.9.3.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/media-gfx/digikam/files/digikam-5.7.0-qt-5.9.3.patch b/media-gfx/digikam/files/digikam-5.7.0-qt-5.9.3.patch new file mode 100644 index 000000000000..e2abe9be39cb --- /dev/null +++ b/media-gfx/digikam/files/digikam-5.7.0-qt-5.9.3.patch @@ -0,0 +1,31 @@ +From 855ba5b7d4bc6337234720a72ea824ddd3b32e5b Mon Sep 17 00:00:00 2001 +From: Maik Qualmann <metzpinguin@gmail.com> +Date: Tue, 28 Nov 2017 21:29:00 +0100 +Subject: try to fix the Qt-5.9.3 empty album problem CCBUGS: 387373 + +--- + libs/database/coredb/coredburl.cpp | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/libs/database/coredb/coredburl.cpp b/libs/database/coredb/coredburl.cpp +index 2c0d0eb..b1bdf71 100644 +--- a/libs/database/coredb/coredburl.cpp ++++ b/libs/database/coredb/coredburl.cpp +@@ -88,8 +88,13 @@ CoreDbUrl CoreDbUrl::fromAlbumAndName(const QString& name, + const DbEngineParameters& parameters) + { + CoreDbUrl url; ++ QString path(album); + url.setScheme(QLatin1String("digikamalbums")); +- url.setPath(QLatin1Char('/') + album + QLatin1Char('/') + name); ++ ++ if (path != QLatin1Char('/')) ++ path += QLatin1Char('/'); ++ ++ url.setPath(path + name); + + QUrlQuery q(url); + q.addQueryItem(QLatin1String("albumRoot"), albumRoot.adjusted(QUrl::StripTrailingSlash).toLocalFile()); +-- +cgit v0.11.2 + |