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

List:       kde-commits
Subject:    =?utf-8?q?=5Bkde-runtime=5D_nepomuk/services/strigi=3A_Terminate?=
From:       Vishesh Handa <handa.vish () gmail ! com>
Date:       2011-06-30 12:41:03
Message-ID: 20110630124103.30AFDA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 453ef63270bccf2e158f89a8ece5b1a5400e0381 by Vishesh Handa.
Committed on 30/06/2011 at 14:39.
Pushed by vhanda into branch 'master'.

Terminate Nepomuk::clearLegacyIndexedDataForUrls properly

Before this patch, this function would always return true if the list
was not empty.

M  +1    -1    nepomuk/services/strigi/util.cpp     

http://commits.kde.org/kde-runtime/453ef63270bccf2e158f89a8ece5b1a5400e0381

diff --git a/nepomuk/services/strigi/util.cpp b/nepomuk/services/strigi/util.cpp
index 3ffb5e5..fb20eac 100644
--- a/nepomuk/services/strigi/util.cpp
+++ b/nepomuk/services/strigi/util.cpp
@@ -79,7 +79,7 @@ KJob* Nepomuk::clearIndexedData( const QList<QUrl>& urls )
 
 bool Nepomuk::clearLegacyIndexedDataForUrls( const KUrl::List& urls )
 {
-    if ( !urls.isEmpty() )
+    if ( urls.isEmpty() )
         return true;
 
     if(urls.count() > Nepomuk::MAX_SPLIT_LIST_ITEMS) {

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

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