From dffee098d93123c902b4d30882fbd7bdd15dbd9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Tue, 24 May 2022 01:38:07 +0200 Subject: [PATCH] Export and display year column as it is. This allows to export/display all sort of valid TDRC formats --- src/library/basetracktablemodel.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/library/basetracktablemodel.cpp b/src/library/basetracktablemodel.cpp index 0da1a322130..6f2996dbc65 100644 --- a/src/library/basetracktablemodel.cpp +++ b/src/library/basetracktablemodel.cpp @@ -649,20 +649,6 @@ QVariant BaseTrackTableModel::roleValue( return QChar('-'); } } - case ColumnCache::COLUMN_LIBRARYTABLE_YEAR: { - if (rawValue.isNull()) { - return QVariant(); - } - VERIFY_OR_DEBUG_ASSERT(rawValue.canConvert()) { - return QVariant(); - } - bool ok; - const auto year = mixxx::TrackMetadata::formatCalendarYear(rawValue.toString(), &ok); - if (!ok) { - return QVariant(); - } - return year; - } case ColumnCache::COLUMN_LIBRARYTABLE_BITRATE: { if (rawValue.isNull()) { return QVariant();