From 4ca10a40fdfd35ad150d436f1b31affac078a2a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Sun, 20 Apr 2008 17:35:53 +0200 Subject: [PATCH] Check dialog return value --- modules/gui/macosx/playlist.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) ) -- 2.39.2