From 72ebe28e127b8f7853e398ee520feb514d8a5c10 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Thu, 2 Sep 2010 16:34:20 +0000 Subject: [PATCH] Really disable caching when caching is disabled (hehe) svn path=/trunk/KDE/kdebase/workspace/; revision=1171078 --- clients/oxygen/oxygenshadowcache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/oxygen/oxygenshadowcache.cpp b/clients/oxygen/oxygenshadowcache.cpp index 4b4aee97aa..1b69e3d2eb 100644 --- a/clients/oxygen/oxygenshadowcache.cpp +++ b/clients/oxygen/oxygenshadowcache.cpp @@ -72,7 +72,7 @@ namespace Oxygen // check if tileset already in cache int hash( key.hash() ); - if( shadowCache_.contains(hash) ) return shadowCache_.object(hash); + if( enabled_ && shadowCache_.contains(hash) ) return shadowCache_.object(hash); // create tileset otherwise qreal size( shadowSize() ); @@ -94,7 +94,7 @@ namespace Oxygen // check if tileset already in cache int hash( key.hash() ); - if( animatedShadowCache_.contains(hash) ) return animatedShadowCache_.object(hash); + if( enabled_ && animatedShadowCache_.contains(hash) ) return animatedShadowCache_.object(hash); // create shadow and tileset otherwise qreal size( shadowSize() );