Commit a26999c1 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

qt4: input_manager: Only add root items to recent items list

fixes #14399
parent 2cc39004
......@@ -128,10 +128,17 @@ void InputManager::setInput( input_thread_t *_p_input )
}
}
// Save the latest URI to avoid asking to restore the
// position on the same input file.
lastURI = qfu( uri );
RecentsMRL::getInstance( p_intf )->addRecent( lastURI );
playlist_Lock( THEPL );
// Add root items only
playlist_item_t* p_node = playlist_CurrentPlayingItem( THEPL );
if ( p_node != NULL && p_node->p_parent == NULL )
{
// Save the latest URI to avoid asking to restore the
// position on the same input file.
lastURI = qfu( uri );
RecentsMRL::getInstance( p_intf )->addRecent( lastURI );
}
playlist_Unlock( THEPL );
free( uri );
}
else
......
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