Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Elisa
Commits
cfa6d1fc
Commit
cfa6d1fc
authored
Sep 14, 2020
by
Matthieu Gallien
🎵
Browse files
fix album data in header bar being undefined
parent
7c63889a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/manageheaderbar.cpp
View file @
cfa6d1fc
...
...
@@ -114,11 +114,15 @@ int ManageHeaderBar::albumIdRole() const
QVariant
ManageHeaderBar
::
album
()
const
{
if
(
!
mCurrentTrack
.
isValid
())
{
return
QString
();
QVariant
result
=
QString
{};
if
(
!
mCurrentTrack
.
isValid
()
||
mCurrentTrack
.
data
(
mAlbumRole
).
isNull
())
{
return
result
;
}
return
mCurrentTrack
.
data
(
mAlbumRole
);
result
=
mCurrentTrack
.
data
(
mAlbumRole
);
return
result
;
}
QVariant
ManageHeaderBar
::
albumArtist
()
const
...
...
Write
Preview
Supports
Markdown
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