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

List:       kde-commits
Subject:    branches/KDE/4.4/kdebase/runtime/nepomuk/kioslaves/nepomuk
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2010-02-17 18:46:32
Message-ID: 1266432392.880627.9890.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1091868 by trueg:

Backport: fixed listing of nfo:Folder resources.

CCMAIL: nlecureuil@mandriva.com


 M  +5 -1      kio_nepomuk.cpp  


--- branches/KDE/4.4/kdebase/runtime/nepomuk/kioslaves/nepomuk/kio_nepomuk.cpp \
#1091867:1091868 @@ -250,7 +250,11 @@
     QString filename;
     Nepomuk::Resource res = splitNepomukUrl( url, filename );
 
-    if ( res.hasType( Soprano::Vocabulary::NAO::Tag() ) ) {
+    if ( res.hasType( Nepomuk::Vocabulary::NFO::Folder() ) ) {
+        redirection( res.property( Nepomuk::Vocabulary::NIE::url() ).toUrl() );
+        finished();
+    }
+    else if ( res.hasType( Soprano::Vocabulary::NAO::Tag() ) ) {
         Query::ComparisonTerm term( Soprano::Vocabulary::NAO::hasTag(), \
Query::ResourceTerm( res ), Query::ComparisonTerm::Equal );  redirection( \
Query::Query( term ).toSearchUrl().url() );  finished();


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

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