Commit 951771db authored by Matthieu Gallien's avatar Matthieu Gallien

ensure metadata is refreshed in context view when track changes

parent 67042c8f
......@@ -376,11 +376,21 @@ void TrackMetadataModel::fetchLyrics()
void TrackMetadataModel::initializeByTrackId(qulonglong databaseId)
{
mFullData.clear();
mTrackData.clear();
mCoverImage.clear();
mFileUrl.clear();
Q_EMIT needDataByDatabaseId(ElisaUtils::Track, databaseId);
}
void TrackMetadataModel::initializeByTrackFileName(const QUrl &fileName)
{
mFullData.clear();
mTrackData.clear();
mCoverImage.clear();
mFileUrl.clear();
Q_EMIT needDataByFileName(ElisaUtils::FileName, fileName);
}
......
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