Commit 159134b4 authored by Yaroslav Sidlovsky's avatar Yaroslav Sidlovsky 💬 Committed by Matthieu Gallien
Browse files

fix: elisa-player fails to compile with Qt < 5.14

inversed macros to check Qt version
parent 9f5c789f
......@@ -711,12 +711,12 @@ void MediaPlayListProxyModel::loadPlayListLoaded()
auto newTracks = DataTypes::EntryDataList{};
for (int i = 0; i < d->mLoadPlaylist.mediaCount(); ++i) {
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
newTracks.push_back({{{{DataTypes::ElementTypeRole, ElisaUtils::FileName},
{DataTypes::ResourceRole, d->mLoadPlaylist.media(i).request().url()}}}, {}, {}});
#else
newTracks.push_back({{{{DataTypes::ElementTypeRole, ElisaUtils::FileName},
{DataTypes::ResourceRole, d->mLoadPlaylist.media(i).request().url()}}}, {}, {}});
{DataTypes::ResourceRole, d->mLoadPlaylist.media(i).canonicalUrl()}}}, {}, {}});
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment