From 1a6a5264baeffeba04b9b2dcb16bd6052c4996f6 Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Sat, 15 May 2021 16:17:00 +0200 Subject: [PATCH] Track: Fix missing synchronization time stamp on metadata import --- src/library/dlgtrackinfo.cpp | 3 ++- src/track/track.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/library/dlgtrackinfo.cpp b/src/library/dlgtrackinfo.cpp index 6821848b743..04f8ba6a68b 100644 --- a/src/library/dlgtrackinfo.cpp +++ b/src/library/dlgtrackinfo.cpp @@ -631,7 +631,8 @@ void DlgTrackInfo::slotImportMetadataFromFile() { Track::newTemporary(std::move(fileAccess)); DEBUG_ASSERT(pTrack); pTrack->replaceMetadataFromSource( - std::move(trackMetadata)); + std::move(trackMetadata), + metadataSynchronized); pTrack->setCoverInfo( std::move(guessedCoverInfo)); populateFields(*pTrack); diff --git a/src/track/track.h b/src/track/track.h index 6c2ab90633a..b94ea6fb858 100644 --- a/src/track/track.h +++ b/src/track/track.h @@ -332,7 +332,7 @@ class Track : public QObject { /// with file tags, either by importing or exporting the metadata. void replaceMetadataFromSource( mixxx::TrackMetadata importedMetadata, - const QDateTime& metadataSynchronized = QDateTime()); + const QDateTime& metadataSynchronized); mixxx::TrackMetadata getMetadata( bool* pMetadataSynchronized = nullptr) const;