Skip to content

Commit

Permalink
Merge pull request #652 from apfelchips/master
Browse files Browse the repository at this point in the history
ignore macOS ._ metadata files
  • Loading branch information
jurplel authored Dec 27, 2023
2 parents e37c8ea + 2ef6568 commit 6c7a99d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/qvimagecore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void QVImageCore::loadPixmap(const ReadData &readData)
if (!currentFileDetails.isMovieLoaded)
if (auto device = loadedMovie.device())
device->close();

currentFileDetails.timeSinceLoaded.start();

emit fileChanged();
Expand Down Expand Up @@ -282,6 +282,13 @@ QList<QVImageCore::CompatibleFile> QVImageCore::getCompatibleFiles(const QString
mimeType = mimeDb.mimeTypeForFile(absoluteFilePath, mimeMatchMode).name();
matched |= mimeTypes.contains(mimeType);
}

// ignore macOS ._ metadata files
if (fileName.startsWith("._"))
{
matched = false;
}

if (matched)
{
fileList.append({
Expand Down

0 comments on commit 6c7a99d

Please sign in to comment.