[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/nepomuk-kde/scribo/plugins/pimo
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2011-02-16 14:53:55
Message-ID: 20110216145355.36C6DAC8BC () svn ! kde ! org
[Download RAW message or body]
SVN commit 1221109 by trueg:
Ignore resources with empty label
M +3 -2 nepomuktokentree.cpp
--- trunk/playground/base/nepomuk-kde/scribo/plugins/pimo/nepomuktokentree.cpp #1221108:1221109
@@ -52,8 +52,9 @@
{
QMutexLocker lock(&m_mutex);
Q_FOREACH(const Nepomuk::Query::Result& result, results) {
- add(result.additionalBindings()[QLatin1String("l")].toString(),
- result.resource().resourceUri());
+ const QString label = result.additionalBindings()[QLatin1String("l")].toString();
+ if(!label.isEmpty())
+ add(label, result.resource().resourceUri());
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic