CVS commit by mlaurent: Backport disable preview on desktop M +12 -2 kdiconview.cc 1.66.2.8 --- kdebase/kdesktop/kdiconview.cc #1.66.2.7:1.66.2.8 @@ -162,5 +162,15 @@ void KDIconView::initConfig( bool init ) if ( !previewSettings().contains( *it ) ){ kdDebug(1204) << "Disabling preview for " << *it << endl; - setIcons( iconSize(), (*it).latin1() /* revert no-longer wanted previews to icons */ ); + if ( *it == "audio/" ) + disableSoundPreviews(); + else + { + KService::Ptr serv = KService::serviceByDesktopName( *it ); + Q_ASSERT( serv != 0L ); + if ( serv ) + { + setIcons( iconSize( ), serv->property("MimeTypes").toStringList().join(";" ) /* revert no-longer wanted previews to icons */ ); + } + } } startImagePreview( QStringList(), true ); @@ -169,5 +179,5 @@ void KDIconView::initConfig( bool init ) { stopImagePreview(); - setIcons( iconSize(), "" /* stopImagePreview */ ); + setIcons( iconSize(), "*" /* stopImagePreview */ ); }