Commit bf60cc95 authored by Ilkka Ollakka's avatar Ilkka Ollakka

if editing some other than currently playing item, set so that

item-change etc. doesn't mix with currently playing item. Ain't so
pretty yet, so take one.

Also don't show same metadata button if not needed.
parent 10a428a8
......@@ -137,6 +137,13 @@ void MediaInfoDialog::setInput( input_item_t *p_input )
{
clear();
update( p_input, true, true );
/* if info is from current input, don't set default to edit, if user opens
* some other item, se default to edit, so it won't be updated to current item metas
*
* This really doesn't seem as clean solution as it could be
*/
in_edit = ( input_GetItem( MainInputManager::getInstance( p_intf )->getInput() ) != p_input );
MP->setEdit( in_edit );
}
void MediaInfoDialog::update()
......@@ -199,6 +206,8 @@ void MediaInfoDialog::updateButtons( int i_tab )
{
msg_Dbg( p_intf, "Coin Coin, Tab number: %i", i_tab );
if( i_tab == 0 ) saveMetaButton->show();
else saveMetaButton->hide();
if( in_edit and i_tab == 0 )
saveMetaButton->show();
else
saveMetaButton->hide();
}
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