Commit 0ed592d6 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix some issues about displaying the media information.

parent 601ac54e
......@@ -158,7 +158,11 @@ MetaPanel::MetaPanel( QWidget *parent,
**/
void MetaPanel::update( input_item_t *p_item )
{
if( !p_item ) clear();
if( !p_item )
{
clear();
return;
}
/* Don't update if you are in edit mode */
if( b_inEditMode ) return;
......@@ -320,6 +324,7 @@ void MetaPanel::clear()
art_cover->update( NULL );
setEditMode( false );
emit uriSet( "" );
}
/**
......@@ -354,7 +359,11 @@ ExtraMetaPanel::ExtraMetaPanel( QWidget *parent,
**/
void ExtraMetaPanel::update( input_item_t *p_item )
{
if( !p_item ) clear();
if( !p_item )
{
clear();
return;
}
QStringList tempItem;
QList<QTreeWidgetItem *> items;
......@@ -425,7 +434,11 @@ InfoPanel::InfoPanel( QWidget *parent,
**/
void InfoPanel::update( input_item_t *p_item)
{
if( !p_item ) clear();
if( !p_item )
{
clear();
return;
}
InfoTree->clear();
QTreeWidgetItem *current_item = NULL;
......
......@@ -101,13 +101,13 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
* Connects on the various signals of input_Manager
* For the currently playing element
**/
CONNECT( THEMIM, infoChanged( input_item_t* ),
CONNECT( THEMIM->getIM(), infoChanged( input_item_t* ),
IP, update( input_item_t* ) );
CONNECT( THEMIM, metaChanged( input_item_t* ),
CONNECT( THEMIM->getIM(), metaChanged( input_item_t* ),
MP, update( input_item_t* ) );
CONNECT( THEMIM, metaChanged( input_item_t* ),
CONNECT( THEMIM->getIM(), metaChanged( input_item_t* ),
EMP, update( input_item_t* ) );
CONNECT( THEMIM, statisticsUpdated( input_item_t* ),
CONNECT( THEMIM->getIM(), statisticsUpdated( input_item_t* ),
ISP, update( input_item_t* ) );
if( THEMIM->getInput() )
......
Markdown is supported
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