From 341ea416977251b39ca75e281d47108c2ce0bbba Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Mon, 13 Dec 2004 16:21:36 +0000 Subject: [PATCH] Fixed abort (Ctrl-G) handling in the save playlist prompt git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2794 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- ChangeLog | 6 ++++++ src/screen_play.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 48042cb..e79f313 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-12 Kalle Wallin + * screen_play.c: Fixed abort (Ctrl-G) handling in the save playlist prompt + +2004-12-09 Kalle Wallin + * strfsong.c: %time% format fix from Aurelien Foret (use %02d for seconds) + 2004-11-14 Kalle Wallin * Added a search screen * screen_browse.c: added enqueue and play feature diff --git a/src/screen_play.c b/src/screen_play.c index a86ab01..cdb8320 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -156,13 +156,14 @@ handle_save_playlist(screen_t *screen, mpdclient_t *c, char *name) NULL, NULL, gcmp); - filename=g_strstrip(filename); /* destroy completion support */ wrln_pre_completion_callback = NULL; wrln_post_completion_callback = NULL; g_completion_free(gcmp); list = string_list_free(list); + if( filename ) + filename=g_strstrip(filename); } else { -- 2.30.2