Commit 3a103b02 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

fix loading track metadata in TrackMetaDataModel

parent 5fb8a944
......@@ -270,6 +270,7 @@ void ModelDataLoader::loadDataByUrl(ElisaUtils::PlayListEntryType dataType, cons
switch (dataType)
{
case ElisaUtils::FileName:
case ElisaUtils::Track:
{
auto databaseId = d->mDatabase->trackIdFromFileName(url);
if (databaseId != 0) {
......@@ -280,7 +281,6 @@ void ModelDataLoader::loadDataByUrl(ElisaUtils::PlayListEntryType dataType, cons
}
break;
}
case ElisaUtils::Track:
case ElisaUtils::Album:
case ElisaUtils::Artist:
case ElisaUtils::Composer:
......
......@@ -127,7 +127,7 @@ FocusScope {
}
onCallOpenMetaDataView: {
openMetaDataView(databaseId, model.url, entryType)
openMetaDataView(databaseId, url, entryType)
}
}
}
......@@ -172,7 +172,7 @@ FocusScope {
}
onCallOpenMetaDataView: {
openMetaDataView(databaseId, model.url, entryType)
openMetaDataView(databaseId, url, entryType)
}
}
}
......
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