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