[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/nepomuk-kde/annotation/lib/gui
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-05-21 15:26:52
Message-ID: 20100521152652.84964AC8BD () svn ! kde ! org
[Download RAW message or body]
SVN commit 1129200 by trueg:
Do not try to restrict using non-existing resources.
M +3 -0 annotationmenu.cpp
--- trunk/playground/base/nepomuk-kde/annotation/lib/gui/annotationmenu.cpp #1129199:1129200
@@ -404,9 +404,12 @@
// make sure we ignore resources that are already related to all our resources
Query::AndTerm ignoreRelated;
Q_FOREACH( const Resource& res, m_resources )
+ if ( res.exists() ) {
ignoreRelated.addSubTerm(
Query::ComparisonTerm( Types::Property(), Query::ResourceTerm( res ) ).inverted()
);
+ }
+ if ( !ignoreRelated.subTerms().isEmpty() )
mainTerm.addSubTerm( Query::NegationTerm::negateTerm( ignoreRelated ) );
// sort the resources by most often used
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic