summaryrefslogtreecommitdiffstats
path: root/tdeio/tdefile/tdefileiconview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-02 08:41:28 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-02 08:41:28 -0500
commit54578ce023227543f531a56fcc178b9e95e9ab5e (patch)
tree17258b2bded8681198dd5003bfcd2a212c203e95 /tdeio/tdefile/tdefileiconview.cpp
parent09a4688659beb1f585cbd8d59b57eb75b9c1fab9 (diff)
downloadtdelibs-54578ce023227543f531a56fcc178b9e95e9ab5e.tar.gz
tdelibs-54578ce023227543f531a56fcc178b9e95e9ab5e.zip
Add mimeTypePtrFast method to KFileItem
This relates to Bug 699 Clean up a couple of minor build warnings Classify usbmisc devices
Diffstat (limited to 'tdeio/tdefile/tdefileiconview.cpp')
-rw-r--r--tdeio/tdefile/tdefileiconview.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tdeio/tdefile/tdefileiconview.cpp b/tdeio/tdefile/tdefileiconview.cpp
index 92bbeba41..d4be8a58f 100644
--- a/tdeio/tdefile/tdefileiconview.cpp
+++ b/tdeio/tdefile/tdefileiconview.cpp
@@ -611,7 +611,7 @@ void KFileIconView::slotPreviewResult( TDEIO::Job *job )
void KFileIconView::gotPreview( const KFileItem *item, const TQPixmap& pix )
{
KFileIconViewItem *it = viewItem( item );
- if ( it )
+ if ( it ) {
if( item->overlays() & TDEIcon::HiddenOverlay )
{
TQPixmap p( pix );
@@ -619,8 +619,10 @@ void KFileIconView::gotPreview( const KFileItem *item, const TQPixmap& pix )
TDEIconEffect::semiTransparent( p );
it->setPixmap( p );
}
- else
+ else {
it->setPixmap( pix );
+ }
+ }
}
bool KFileIconView::canPreview( const KFileItem *item ) const