Skip to content

Commit

Permalink
Export and display year column as it is.
Browse files Browse the repository at this point in the history
This allows to export/display all sort of valid TDRC formats
  • Loading branch information
daschuer committed May 23, 2022
1 parent cf3e993 commit dffee09
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/library/basetracktablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<QString>()) {
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();
Expand Down

0 comments on commit dffee09

Please sign in to comment.