[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:       2010-08-26 16:56:25
Message-ID: 20100826165625.642D2AC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1168446 by trueg:

Remove the value in the cache instead of storing an invalid Variant.

 M  +3 -0      resourcedata.cpp  


--- trunk/KDE/kdelibs/nepomuk/core/resourcedata.cpp #1168445:1168446
@@ -433,7 +433,10 @@
         }
 
         // update the cache for now
+        if( value.isValid() )
         m_cache[uri] = value;
+        else
+            m_cache.remove(uri);
 
         // update the store
         MAINMODEL->updateProperty( m_uri, uri, value.toNodeList() );
[prev in list] [next in list] [prev in thread] [next in thread] 

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