]> git.sesse.net Git - vlc/commitdiff
macosx: fix addition of empty folders to the playlist. needs some beautification...
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 7 Apr 2009 16:52:22 +0000 (18:52 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 7 Apr 2009 16:52:22 +0000 (18:52 +0200)
modules/gui/macosx/playlist.m

index 89216a831ee1ffba68141bb5384d1fb75c189863..8a81ce759621122b9f8f9694e6467c22f0ecde73 100644 (file)
     playlist_t * p_playlist = pl_Hold( VLCIntf );
     vlc_thread_set_priority( p_playlist, VLC_THREAD_PRIORITY_LOW );
 
-    int ret_v;
-    char *psz_name = NULL;
-    ret_v = intf_UserStringInput( p_playlist, _("New Node"),
-        _("Please enter a name for the new node."), &psz_name );
-
     PL_LOCK;
-    if( ret_v != DIALOG_CANCELLED && psz_name )
-    {
-        playlist_NodeCreate( p_playlist, psz_name,
-                                      p_playlist->p_local_category, 0, NULL );
-    }
-    else if(! config_GetInt( p_playlist, "interact" ) )
-    {
-        /* in case that the interaction is disabled, just give it a bogus name */
-        playlist_NodeCreate( p_playlist, _("Empty Folder"),
+    playlist_NodeCreate( p_playlist, _("Empty Folder"),
                                       p_playlist->p_local_category, 0, NULL );
-    }
     PL_UNLOCK;
 
     free( psz_name );