Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
e70940c3
Commit
e70940c3
authored
Sep 10, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: selector, prevent some podcast crashes
parent
ecbba65a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/selector.cpp
+7
-0
No files found.
modules/gui/qt4/components/playlist/selector.cpp
View file @
e70940c3
...
...
@@ -41,6 +41,7 @@
#include <QPainter>
#include <QPalette>
#include <QScrollBar>
#include <assert.h>
#include <vlc_playlist.h>
#include <vlc_services_discovery.h>
...
...
@@ -445,6 +446,8 @@ void PLSelector::plItemAdded( int item, int parent )
void
PLSelector
::
plItemRemoved
(
int
id
)
{
if
(
!
podcastsParent
)
return
;
int
c
=
podcastsParent
->
childCount
();
for
(
int
i
=
0
;
i
<
c
;
i
++
)
{
...
...
@@ -462,6 +465,8 @@ void PLSelector::plItemRemoved( int id )
void
PLSelector
::
inputItemUpdate
(
input_item_t
*
arg
)
{
if
(
!
podcastsParent
)
return
;
int
c
=
podcastsParent
->
childCount
();
for
(
int
i
=
0
;
i
<
c
;
i
++
)
{
...
...
@@ -480,6 +485,8 @@ void PLSelector::inputItemUpdate( input_item_t *arg )
void
PLSelector
::
podcastAdd
(
PLSelItem
*
)
{
assert
(
podcastsParent
);
bool
ok
;
QString
url
=
QInputDialog
::
getText
(
this
,
qtr
(
"Subscribe"
),
qtr
(
"Enter URL of the podcast to subscribe to:"
),
...
...
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