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

Backport da0fa0f6: Unbreak svg and video thumbnails

BUG: 280879
parent 37cebeb3
......@@ -667,7 +667,10 @@ void ThumbnailLoadJob::checkThumbnail() {
KFileItemList list;
list.append(mCurrentItem);
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);
//job->ui()->setWindow(KApplication::kApplication()->activeWindow());
connect(job, SIGNAL(gotPreview(const KFileItem&, const QPixmap&)),
this, SLOT(slotGotPreview(const KFileItem&, const QPixmap&)) );
......
......@@ -218,6 +218,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