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

Qt: use the open helper to open directories

And there was no need to use the Item version, and the MRL was bogusly
added to RecentsMRL
parent c5058e11
......@@ -511,18 +511,7 @@ static void openDirectory( intf_thread_t *p_intf, bool pl, bool go )
if( unlikely(uri == NULL) )
return;
RecentsMRL::getInstance( p_intf )->addRecent( qfu(uri) );
input_item_t *p_input = input_item_New( uri, NULL );
free( uri );
if( unlikely( p_input == NULL ) )
return;
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput( THEPL, p_input,
go ? ( PLAYLIST_APPEND | PLAYLIST_GO ) : PLAYLIST_APPEND,
PLAYLIST_END, pl, pl_Unlocked );
vlc_gc_decref( p_input );
Open::openMRL( p_intf, uri, go, pl );
}
QString DialogsProvider::getDirectoryDialog()
......
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