[vlc-devel] commit: Check dialog return value ( Rafaël Carré )

git version control git at videolan.org
Sun Apr 20 17:38:06 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sun Apr 20 17:35:53 2008 +0200| [4ca10a40fdfd35ad150d436f1b31affac078a2a2]

Check dialog return value

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ca10a40fdfd35ad150d436f1b31affac078a2a2
---

 modules/gui/macosx/playlist.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 71cf5e3..69cebaa 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" ) )




More information about the vlc-devel mailing list