Commit 8cdf8751 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

If the thumbnail fails to generate, print the reason on stderr

parent d490ae15
......@@ -728,7 +728,11 @@ void FileFilter::HotSpot::thumbnailRequested() {
_previewJob = new KIO::PreviewJob(KFileItemList({fileItem()}), QSize(size, size));
connect(_previewJob, &KIO::PreviewJob::gotPreview, this, &FileFilter::HotSpot::showThumbnail);
connect(_previewJob, &KIO::PreviewJob::failed, this, []{ QToolTip::hideText(); });
connect(_previewJob, &KIO::PreviewJob::failed, this, []{
qCDebug(KonsoleDebug) << "Error generating the preview" << _previewJob->errorString();
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