From dde6e3616b4d47ab7c2c3ab6206fb3de824ca3cf Mon Sep 17 00:00:00 2001 From: Gildas Bazin Date: Tue, 5 Apr 2005 15:32:26 +0000 Subject: [PATCH] * modules/gui/wxwindows/dialogs.cpp: fixed add directory. --- modules/gui/wxwindows/dialogs.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/modules/gui/wxwindows/dialogs.cpp b/modules/gui/wxwindows/dialogs.cpp index c4119038c3..2951940c3e 100644 --- a/modules/gui/wxwindows/dialogs.cpp +++ b/modules/gui/wxwindows/dialogs.cpp @@ -427,14 +427,10 @@ void DialogsProvider::OnOpenDirectory( wxCommandEvent& event ) playlist_item_t *p_item; wxString path = p_dir_dialog->GetPath(); - int i_id = playlist_Add( p_playlist, (const char *)path.mb_str(), - (const char *)path.mb_str(), - PLAYLIST_APPEND, PLAYLIST_END ); - p_item = playlist_LockItemGetById( p_playlist, i_id ); - if( p_item ) - { - input_CreateThread( p_intf, &p_item->input ); - } + playlist_Add( p_playlist, (const char *)path.mb_str(), + (const char *)path.mb_str(), + PLAYLIST_APPEND | (event.GetInt() ? PLAYLIST_GO : 0), + PLAYLIST_END ); } vlc_object_release( p_playlist ); -- 2.39.5