]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Do not show '-' for additional info which is not available for an item
authorFrank Reininghaus <frank78ac@googlemail.com>
Thu, 6 Sep 2012 05:51:22 +0000 (07:51 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Thu, 6 Sep 2012 05:57:48 +0000 (07:57 +0200)
I'm only backporting the removal of the '-', not the update for the
line number calculation in Icons View, because this is the safest part
of the patch and also the one that fixes the most annoying part of the
bug.

Thanks to Todd Jennings for the patch!
BUG: 304752
REVIEW: 106304
(cherry picked from commit 20b0cb68bf5cc1099fd6e61982817d9e2ae0130c)

src/kitemviews/private/knepomukrolesprovider.cpp

index 0ae9b6bd3edf88ea48c40bb491ef9e57148b8062..b0e179807815cd6c21a40e05a5772431fd35b09b 100644 (file)
@@ -108,13 +108,6 @@ QHash<QByteArray, QVariant> KNepomukRolesProvider::roleValues(const Nepomuk::Res
         }
     }
 
-    // Assure that empty values get replaced by "-"
-    foreach (const QByteArray& role, roles) {
-        if (m_roles.contains(role) && values.value(role).toString().isEmpty()) {
-            values.insert(role, QLatin1String("-"));
-        }
-    }
-
     return values;
 }