Really disable caching when caching is disabled (hehe)

svn path=/trunk/KDE/kdebase/workspace/; revision=1171078
This commit is contained in:
Hugo Pereira Da Costa 2010-09-02 16:34:20 +00:00
parent 04c6196d77
commit 72ebe28e12

View file

@ -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() );