From kde-commits Tue Apr 05 19:43:27 2005 From: Christian Loose Date: Tue, 05 Apr 2005 19:43:27 +0000 To: kde-commits Subject: Re: kdebase/libkonq Message-Id: <200504052143.28052.christian.loose () hamburg ! de> X-MARC-Message: https://marc.info/?l=kde-commits&m=111273014317064 Am Dienstag, 5. April 2005 00:27 schrieb Stephan Binner: > CVS commit by binner: > > Bug 100597: SVG images don't have 'set as wallpaper' entry in context menu > when dragged to desktop > > > M +3 -2 konq_operations.cc 1.163 > > > --- kdebase/libkonq/konq_operations.cc #1.162:1.163 > @@ -539,6 +539,7 @@ void KonqOperations::doFileCopy() > (lst.count() == 1) && > ((!KImageIO::type(lst.first().path()).isEmpty()) || > - > (KImageIO::isSupported(KMimeType::findByURL(lst.first())->name(), - > KImageIO::Reading)))) > + > (KImageIO::isSupported(KMimeType::findByURL(lst.first())->name(), > KImageIO::Reading)) || + > lst.first().fileName().endsWith(".svg") || > + lst.first().fileName().endsWith(".svgz"))) > { > bSetWallpaper = true; I don't know much about our mimetype stuff, but isn't KMimeType::findByURL(lst.first())->is("image/svg+xml") safer? Especially since it also contains the upper case file extensions?