diff --git a/src/qvimagecore.cpp b/src/qvimagecore.cpp index ef578ea8..5a08eee7 100644 --- a/src/qvimagecore.cpp +++ b/src/qvimagecore.cpp @@ -231,7 +231,7 @@ void QVImageCore::loadPixmap(const ReadData &readData) if (!currentFileDetails.isMovieLoaded) if (auto device = loadedMovie.device()) device->close(); - + currentFileDetails.timeSinceLoaded.start(); emit fileChanged(); @@ -290,11 +290,19 @@ QList QVImageCore::getCompatibleFiles(const QString const QString suffix = fileInfo.suffix().toLower(); bool matched = !suffix.isEmpty() && extensions.contains("." + suffix); QString mimeType; + if (!matched || sortMode == Qv::SortMode::Type) { mimeType = mimeDb.mimeTypeForFile(absoluteFilePath, mimeMatchMode).name(); matched |= mimeTypes.contains(mimeType) && (suffix.isEmpty() || !disabledExtensions.contains("." + suffix)); } + + // ignore macOS ._ metadata files + if (fileName.startsWith("._")) + { + matched = false; + } + if (matched) { fileList.append({