diff --git a/src/utilities/coverutils.cpp b/src/utilities/coverutils.cpp index bd3cb2a3d..dc7a3b6b0 100644 --- a/src/utilities/coverutils.cpp +++ b/src/utilities/coverutils.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -80,7 +81,7 @@ QString CoverUtils::CoverFilePath(const CoverOptions &options, const Song::Sourc } QDir dir; - if (!dir.mkpath(path)) { + if (!QFileInfo::exists(path) && !dir.mkpath(path)) { qLog(Error) << "Unable to create directory" << path; path = QStandardPaths::writableLocation(QStandardPaths::TempLocation); }