Commit da0fa0f6 authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

Unbreak svg and video thumbnails

BUG: 280879
parent 98c58c63
......@@ -674,7 +674,10 @@ void ThumbnailLoadJob::checkThumbnail()
KFileItemList list;
const int pixelSize = ThumbnailGroup::pixelSize(mThumbnailGroup);
KIO::Job* job = KIO::filePreview(list, QSize(pixelSize, pixelSize));
if (mPreviewPlugins.isEmpty()) {
mPreviewPlugins = KIO::PreviewJob::availablePlugins();
KIO::Job* job = KIO::filePreview(list, QSize(pixelSize, pixelSize), &mPreviewPlugins);
connect(job, SIGNAL(gotPreview(KFileItem, QPixmap)),
this, SLOT(slotGotPreview(KFileItem, QPixmap)));
......@@ -221,6 +221,8 @@ private:
ThumbnailThread mThumbnailThread;
QStringList mPreviewPlugins;
void determineNextIcon();
void startCreatingThumbnail(const QString& path);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment