summaryrefslogtreecommitdiffstats
path: root/kio/kfile/kfileiconview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kio/kfile/kfileiconview.cpp')
-rw-r--r--kio/kfile/kfileiconview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/kio/kfile/kfileiconview.cpp b/kio/kfile/kfileiconview.cpp
index fec9158de..a762472cc 100644
--- a/kio/kfile/kfileiconview.cpp
+++ b/kio/kfile/kfileiconview.cpp
@@ -611,7 +611,7 @@ void KFileIconView::slotPreviewResult( KIO::Job *job )
void KFileIconView::gotPreview( const KFileItem *item, const TQPixmap& pix )
{
KFileIconViewItem *it = viewItem( item );
- if ( it )
+ if ( it ) {
if( item->overlays() & KIcon::HiddenOverlay )
{
TQPixmap p( pix );
@@ -619,8 +619,10 @@ void KFileIconView::gotPreview( const KFileItem *item, const TQPixmap& pix )
KIconEffect::semiTransparent( p );
it->setPixmap( p );
}
- else
+ else {
it->setPixmap( pix );
+ }
+ }
}
bool KFileIconView::canPreview( const KFileItem *item ) const