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
cfa6d1fc
Commit
cfa6d1fc
authored
Sep 14, 2020
by
Matthieu Gallien
🎵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix album data in header bar being undefined
parent
7c63889a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/manageheaderbar.cpp
src/manageheaderbar.cpp
+7
-3
No files found.
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
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