Commit d2b84199 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Fix an 'assertion failed' when opening the media information witout an input.

parent 3a3b9f86
......@@ -89,8 +89,10 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
CONNECT( IT, currentChanged( int ), this, updateButtons( int ) );
CONNECT( THEMIM, inputChanged( input_thread_t * ), this, update( input_thread_t * ) );
/* Call update by hand, so info is shown from current item too */
update( input_GetItem(THEMIM->getInput()), true, true );
if( THEMIM->getInput() )
update( input_GetItem(THEMIM->getInput()), true, true );
}
MediaInfoDialog::~MediaInfoDialog()
......
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