Skip to content

Commit

Permalink
Merge pull request #4439 from Be-ing/trackdao_qvariant
Browse files Browse the repository at this point in the history
TrackDao: fix QVariant deprecation warning
  • Loading branch information
uklotzde authored Oct 17, 2021
2 parents 0974c08 + 28fc9c0 commit 913ea45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/library/dao/trackdao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,11 @@ bool insertTrackLibrary(
pTrackLibraryInsert->bindValue(":mixxx_deleted", 0);

// We no longer store the wavesummary in the library table.
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
pTrackLibraryInsert->bindValue(":wavesummaryhex", QVariant(QMetaType(QMetaType::QByteArray)));
#else
pTrackLibraryInsert->bindValue(":wavesummaryhex", QVariant(QVariant::ByteArray));
#endif

VERIFY_OR_DEBUG_ASSERT(pTrackLibraryInsert->exec()) {
// We failed to insert the track. Maybe it is already in the library
Expand Down

0 comments on commit 913ea45

Please sign in to comment.