Commit dde6e361 authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/dialogs.cpp: fixed add directory.

parent 62ea0ebe
...@@ -427,14 +427,10 @@ void DialogsProvider::OnOpenDirectory( wxCommandEvent& event ) ...@@ -427,14 +427,10 @@ void DialogsProvider::OnOpenDirectory( wxCommandEvent& event )
playlist_item_t *p_item; playlist_item_t *p_item;
wxString path = p_dir_dialog->GetPath(); wxString path = p_dir_dialog->GetPath();
int i_id = playlist_Add( p_playlist, (const char *)path.mb_str(), playlist_Add( p_playlist, (const char *)path.mb_str(),
(const char *)path.mb_str(), (const char *)path.mb_str(),
PLAYLIST_APPEND, PLAYLIST_END ); PLAYLIST_APPEND | (event.GetInt() ? PLAYLIST_GO : 0),
p_item = playlist_LockItemGetById( p_playlist, i_id ); PLAYLIST_END );
if( p_item )
{
input_CreateThread( p_intf, &p_item->input );
}
} }
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
......
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