summaryrefslogtreecommitdiff
path: root/user/baloo-widgets/revert.patch
diff options
context:
space:
mode:
authorCyberLeo <cyberleo@cyberleo.net>2020-03-28 05:45:52 -0500
committerCyberLeo <cyberleo@cyberleo.net>2020-03-28 05:45:52 -0500
commit9297468fa579836e3a6a381b798feb6b78217c2d (patch)
tree53168212f427afbcf0693b534530a4af803152e9 /user/baloo-widgets/revert.patch
parenta63cc05c53a6f4c22422dc8c69808b14d87a6f6e (diff)
parentda5a69b65a8791fffa6e93366ee585f87eff136d (diff)
downloadpackages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.gz
packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.bz2
packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.xz
packages-9297468fa579836e3a6a381b798feb6b78217c2d.zip
Merge branch 'master' into zfs
Diffstat (limited to 'user/baloo-widgets/revert.patch')
-rw-r--r--user/baloo-widgets/revert.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/user/baloo-widgets/revert.patch b/user/baloo-widgets/revert.patch
deleted file mode 100644
index cc54adf6f..000000000
--- a/user/baloo-widgets/revert.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- baloo-widgets-19.08.0/src/filemetadatautil.cpp.old 2019-08-09 00:09:30.000000000 +0000
-+++ baloo-widgets-19.08.0/src/filemetadatautil.cpp 2019-08-15 15:31:58.938750148 +0000
-@@ -58,30 +58,10 @@
- QVariantMap toNamedVariantMap(const KFileMetaData::PropertyMap& propMap)
- {
- QVariantMap map;
-- if (propMap.isEmpty()) {
-- return map;
-- }
--
-- using entry = std::pair<const KFileMetaData::Property::Property&, const QVariant&>;
--
-- auto begin = propMap.constKeyValueBegin();
--
-- while (begin != propMap.constKeyValueEnd()) {
-- auto key = (*begin).first;
-- KFileMetaData::PropertyInfo property(key);
-- auto rangeEnd = std::find_if(begin, propMap.constKeyValueEnd(),
-- [key](const entry& e) { return e.first != key; });
--
-- auto distance = std::distance(begin, rangeEnd);
-- if (distance > 1) {
-- QVariantList list;
-- list.reserve(static_cast<int>(distance));
-- std::for_each(begin, rangeEnd, [&list](const entry& s) { list.append(s.second); });
-- map.insert(property.name(), list);
-- } else {
-- map.insert(property.name(), (*begin).second);
-- }
-- begin = rangeEnd;
-+ KFileMetaData::PropertyMap::const_iterator it = propMap.constBegin();
-+ for (; it != propMap.constEnd(); it++) {
-+ KFileMetaData::PropertyInfo pi(it.key());
-+ map.insertMulti(pi.name(), it.value());
- }
-
- return map;