Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Elisa
Commits
41b4529c
Commit
41b4529c
authored
Sep 20, 2020
by
Matthieu Gallien
🎵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not send reset signal at init for an empty track metadata model
parent
87e9a149
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/models/trackmetadatamodel.cpp
src/models/trackmetadatamodel.cpp
+9
-7
No files found.
src/models/trackmetadatamodel.cpp
View file @
41b4529c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment