[vlc-commits] Qt: use the open helper to open directories
Jean-Baptiste Kempf
git at videolan.org
Sun May 18 16:58:35 CEST 2014
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun May 18 16:56:52 2014 +0200| [a46006ea2572cdbb31295837c78aa002a74e7132] | committer: 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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a46006ea2572cdbb31295837c78aa002a74e7132
---
modules/gui/qt4/dialogs_provider.cpp | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index 8e83f06..1d34046 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -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()
More information about the vlc-commits
mailing list