[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/nepomuk-kde/annotation/plugins/scribo
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2011-02-17 11:24:45
Message-ID: 20110217112445.7FAB8AC8BE () svn ! kde ! org
[Download RAW message or body]

SVN commit 1221268 by trueg:

Ignore entities with an empty label

 M  +4 -1      scriboannotationplugin.cpp  


--- trunk/playground/base/nepomuk-kde/annotation/plugins/scribo/scriboannotationplugin.cpp \
#1221267:1221268 @@ -164,7 +164,7 @@
         if ( entity.localResource().isValid() ) {
             createAnnotationForResource( entity, entity.localResource(), 1.0 );
         }
-        else {
+        else if( !entity.label().isEmpty() ) {
             // FIXME: use the entity type
 
             Query::Query query(
@@ -208,8 +208,11 @@
 #endif
             }
         }
+        else {
+            kDebug() << "Ignoring entity without label!";
     }
 }
+}
 
 
 void Nepomuk::ScriboAnnotationPlugin::createAnnotationForResource( const \
Scribo::Entity& entity, const Nepomuk::Resource& res, double score )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic