Commit d253749f authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Fix addNode:.

parent ebac41cb
...@@ -1350,24 +1350,24 @@ ...@@ -1350,24 +1350,24 @@
int ret_v; int ret_v;
char *psz_name = NULL; char *psz_name = NULL;
playlist_item_t * p_item;
ret_v = intf_UserStringInput( p_playlist, _("New Node"), ret_v = intf_UserStringInput( p_playlist, _("New Node"),
_("Please enter a name for the new node."), &psz_name ); _("Please enter a name for the new node."), &psz_name );
PL_LOCK;
if( ret_v != DIALOG_CANCELLED && psz_name && *psz_name ) if( ret_v != DIALOG_CANCELLED && psz_name && *psz_name )
p_item = playlist_NodeCreate( p_playlist, psz_name, {
playlist_NodeCreate( p_playlist, psz_name,
p_playlist->p_local_category, 0, NULL ); p_playlist->p_local_category, 0, NULL );
}
else if(! config_GetInt( p_playlist, "interact" ) ) else if(! config_GetInt( p_playlist, "interact" ) )
{ {
/* in case that the interaction is disabled, just give it a bogus name */ /* in case that the interaction is disabled, just give it a bogus name */
p_item = playlist_NodeCreate( p_playlist, _("Empty Folder"), playlist_NodeCreate( p_playlist, _("Empty Folder"),
p_playlist->p_local_category, 0, NULL ); p_playlist->p_local_category, 0, NULL );
} }
PL_UNLOCK;
if(! p_item ) pl_Release( VLCIntf );
msg_Warn( VLCIntf, "node creation failed or cancelled by user" );
vlc_object_release( p_playlist );
[ourPool release]; [ourPool release];
} }
......
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