Commit 4cd019b1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt: selector, prevent some podcast crashes

parent a2df1797
......@@ -41,6 +41,7 @@
#include <QPainter>
#include <QPalette>
#include <QScrollBar>
#include <assert.h>
#include <vlc_playlist.h>
#include <vlc_services_discovery.h>
......@@ -457,6 +458,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++ )
{
......@@ -495,6 +498,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:" ),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment