From 3e7ad37f5617f7f571fbd7b4aeba1d492271af33 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 27 Sep 2014 18:49:29 -0500 Subject: Repair all known Konqueror performance regressions caused by early calls to expensive mimetype operations These accidental errors span most TDE releases and many KDE 3.x releases This resolves Bug 699 --- libkonq/tdefileivi.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'libkonq/tdefileivi.cc') diff --git a/libkonq/tdefileivi.cc b/libkonq/tdefileivi.cc index 629d9a27d..08bd240ba 100644 --- a/libkonq/tdefileivi.cc +++ b/libkonq/tdefileivi.cc @@ -570,14 +570,9 @@ void KFileIVI::updatePixmapSize() KonqIconViewWidget* view = static_cast( iconView() ); - if ( view && view->canPreview( item() ) ) { - int previewSize = view->previewIconSize( size ); - setPixmapSize( TQSize( previewSize, previewSize ) ); - } - else { - TQSize pixSize = TQSize( size, size ); - if ( pixSize != pixmapSize() ) - setPixmapSize( pixSize ); + TQSize pixSize = TQSize( size, size ); + if ( pixSize != pixmapSize() ) { + setPixmapSize( pixSize ); } } -- cgit v1.2.1