Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4f66b077
Commit
4f66b077
authored
Sep 13, 2008
by
Jean-Philippe Andre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt coverlabel should always show an image, even when load fails
parent
6f85cf97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+11
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
4f66b077
...
@@ -1517,7 +1517,17 @@ void CoverArtLabel::doUpdate()
...
@@ -1517,7 +1517,17 @@ void CoverArtLabel::doUpdate()
{
{
QString
artUrl
=
qfu
(
psz_meta
).
replace
(
"file://"
,
""
);
QString
artUrl
=
qfu
(
psz_meta
).
replace
(
"file://"
,
""
);
if
(
artUrl
!=
prevArt
)
if
(
artUrl
!=
prevArt
)
setPixmap
(
QPixmap
(
artUrl
)
);
{
QPixmap
pix
;
if
(
pix
.
load
(
artUrl
)
)
setPixmap
(
pix
);
else
{
msg_Dbg
(
p_this
,
"Qt could not load image '%s'"
,
qtu
(
artUrl
)
);
setPixmap
(
QPixmap
(
":/noart.png"
)
);
}
}
QList
<
QAction
*
>
artActions
=
actions
();
QList
<
QAction
*
>
artActions
=
actions
();
if
(
!
artActions
.
isEmpty
()
)
if
(
!
artActions
.
isEmpty
()
)
{
{
...
...
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