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

List:       kde-commits
Subject:    KDE/kdelibs/nepomuk/core
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2008-10-13 9:44:30
Message-ID: 1223891070.414907.22383.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 870776 by trueg:

Do never use the uri of the grounding accurrence as fallback label

 M  +5 -1      resource.cpp  


--- trunk/KDE/kdelibs/nepomuk/core/resource.cpp #870775:870776
@@ -307,8 +307,12 @@
                         QList<Resource> go = property( \
Vocabulary::PIMO::groundingOccurrence() ).toResourceList();  if( !go.isEmpty() ) {
                             label = go.first().genericLabel();
+                            if( label == go.first().resourceUri().toString() ) {
+                                label = QString();
+                            }
                         }
-                        else {
+
+                        if ( label.isEmpty() ) {
                             // ugly fallback
                             label = resourceUri().toString();
                         }


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

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