From 7774a597833e3db268bc9ed4ca2ad51da7dc73c18aa2e1f4af84f06dc2e45121 Mon Sep 17 00:00:00 2001 From: Raymond Wooninck Date: Sun, 27 Mar 2016 14:12:15 +0000 Subject: [PATCH] Accepting request 379926 from home:wolfi323:branches:KDE:Applications - Added Fix-wrong-path-URL-conversion.patch: fixes display of additional file metadata in dolphin's filelist for indexed files (boo#970896) OBS-URL: https://build.opensuse.org/request/show/379926 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/dolphin?expand=0&rev=35 --- Fix-wrong-path-URL-conversion.patch | 48 +++++++++++++++++++++++++++++ dolphin.changes | 7 +++++ dolphin.spec | 3 ++ 3 files changed, 58 insertions(+) create mode 100644 Fix-wrong-path-URL-conversion.patch diff --git a/Fix-wrong-path-URL-conversion.patch b/Fix-wrong-path-URL-conversion.patch new file mode 100644 index 0000000..465712f --- /dev/null +++ b/Fix-wrong-path-URL-conversion.patch @@ -0,0 +1,48 @@ +From: David Faure +Date: Sat, 28 Nov 2015 22:44:47 +0000 +Subject: Fix wrong path->URL conversion. +X-Git-Tag: v16.03.80 +X-Git-Url: http://quickgit.kde.org/?p=dolphin.git&a=commitdiff&h=35b35d0c5f62641a685282d25ea204e7004e09c0 +--- +Fix wrong path->URL conversion. +--- + + +--- a/src/kitemviews/kfileitemmodelrolesupdater.cpp ++++ b/src/kitemviews/kfileitemmodelrolesupdater.cpp +@@ -717,7 +717,13 @@ + // the corresponding file has been deleted in the meantime. + return; + } +- ++ applyChangedBalooRolesForItem(item); ++#endif ++} ++ ++void KFileItemModelRolesUpdater::applyChangedBalooRolesForItem(const KFileItem &item) ++{ ++#ifdef HAVE_BALOO + Baloo::File file(item.localPath()); + file.load(); + +@@ -1089,7 +1095,7 @@ + #ifdef HAVE_BALOO + if (m_balooFileMonitor) { + m_balooFileMonitor->addFile(item.localPath()); +- applyChangedBalooRoles(item.localPath()); ++ applyChangedBalooRolesForItem(item); + } + #endif + return data; + +--- a/src/kitemviews/kfileitemmodelrolesupdater.h ++++ b/src/kitemviews/kfileitemmodelrolesupdater.h +@@ -211,6 +211,7 @@ + void resolveRecentlyChangedItems(); + + void applyChangedBalooRoles(const QString& file); ++ void applyChangedBalooRolesForItem(const KFileItem& file); + + void slotDirectoryContentsCountReceived(const QString& path, int count); + + diff --git a/dolphin.changes b/dolphin.changes index e5e5a63..f9b9116 100644 --- a/dolphin.changes +++ b/dolphin.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 25 16:37:37 UTC 2016 - wbauer@tmo.at + +- Added Fix-wrong-path-URL-conversion.patch: fixes display of + additional file metadata in dolphin's filelist for indexed files + (boo#970896) + ------------------------------------------------------------------- Sun Mar 13 15:34:13 UTC 2016 - tittiatcoke@gmail.com diff --git a/dolphin.spec b/dolphin.spec index 6cfa7c7..b70fb7f 100644 --- a/dolphin.spec +++ b/dolphin.spec @@ -26,6 +26,8 @@ Url: http://www.kde.org/ Source: dolphin-%{version}.tar.xz Source1: dolphinsu.desktop Patch0: dolphin-go_up.diff +# PATCH-FIX-UPSTREAM Fix-wrong-path-URL-conversion.patch boo#970896 -- fixes display of additional file metadata in dolphin's filelist +Patch1: Fix-wrong-path-URL-conversion.patch BuildRequires: baloo5-devel BuildRequires: baloo5-widgets-devel BuildRequires: extra-cmake-modules >= 1.6.0 @@ -94,6 +96,7 @@ This package contains the libraries used by Dolphin and Konqueror. %prep %setup -q -n dolphin-%{version} %patch0 -p1 +%patch1 -p1 %build %cmake_kf5 -d build