Commit 41b4529c authored by Matthieu Gallien's avatar Matthieu Gallien 🎵

do not send reset signal at init for an empty track metadata model

parent 87e9a149
......@@ -423,14 +423,16 @@ void TrackMetadataModel::lyricsValueIsReady()
void TrackMetadataModel::initializeByIdAndUrl(ElisaUtils::PlayListEntryType type, qulonglong databaseId, const QUrl &url)
{
beginResetModel();
mFullData.clear();
mTrackData.clear();
mCoverImage.clear();
mFileUrl.clear();
endResetModel();
if (!mFullData.isEmpty()) {
beginResetModel();
mFullData.clear();
mTrackData.clear();
mCoverImage.clear();
mFileUrl.clear();
endResetModel();
Q_EMIT lyricsChanged();
Q_EMIT lyricsChanged();
}
mFileUrl = url;
mDatabaseId = databaseId;
......
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