From 0938e81711f4439614467eeeca2debc3874f0abc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Apr 2015 10:38:38 +0200 Subject: [PATCH] Avoid "QFSFileEngine::open: No file name specified" messages if we know that the filename is empty --- src/covers/albumcoverloader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/covers/albumcoverloader.cpp b/src/covers/albumcoverloader.cpp index 8ebf51cce..a1a4582ef 100644 --- a/src/covers/albumcoverloader.cpp +++ b/src/covers/albumcoverloader.cpp @@ -196,6 +196,9 @@ AlbumCoverLoader::TryLoadResult AlbumCoverLoader::TryLoadImage( QMetaObject::invokeMethod(spotify, "LoadImage", Qt::QueuedConnection, Q_ARG(QString, id)); return TryLoadResult(true, false, QImage()); + } else if (filename.isEmpty()) { + // Avoid "QFSFileEngine::open: No file name specified" messages if we know that the filename is empty + return TryLoadResult(false, false, task.options.default_output_image_); } QImage image(filename);