From: Rafaël Carré Date: Sun, 20 Apr 2008 15:35:53 +0000 (+0200) Subject: Check dialog return value X-Git-Tag: 0.9.0-test0~1397 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4ca10a40fdfd35ad150d436f1b31affac078a2a2;p=vlc Check dialog return value --- diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 71cf5e344a..69cebaaf33 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -1340,7 +1340,7 @@ ret_v = intf_UserStringInput( p_playlist, _("New Node"), _("Please enter a name for the new node."), &psz_name ); - if( psz_name != NULL && psz_name != "" ) + if( ret_v != DIALOG_CANCELLED && psz_name && *psz_name ) p_item = playlist_NodeCreate( p_playlist, psz_name, p_playlist->p_local_category, 0, NULL ); else if(! config_GetInt( p_playlist, "interact" ) )