diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-15 13:17:22 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-15 13:17:22 +0000 |
commit | ddd7adff6d0e02c31b371559cd822f3b5feba345 (patch) | |
tree | f7c0703e7ee740ce2454cdff6f0249c8d862decd /src/screen_file.c | |
parent | a8baf3be0cbdb33d48df4e704ca2f1cb0b77f93b (diff) | |
download | mpd-ddd7adff6d0e02c31b371559cd822f3b5feba345.tar.gz mpd-ddd7adff6d0e02c31b371559cd822f3b5feba345.tar.xz mpd-ddd7adff6d0e02c31b371559cd822f3b5feba345.zip |
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1497 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/screen_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen_file.c b/src/screen_file.c index f4a8c3dc0..f26333a21 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -26,6 +26,7 @@ #include "config.h" #include "ncmpc.h" +#include "options.h" #include "support.h" #include "mpdclient.h" #include "strfsong.h" @@ -305,12 +306,12 @@ handle_delete(screen_t *screen, mpdclient_t *c) plf = entity->info.playlistFile; str = utf8_to_locale(basename(plf->path)); - snprintf(buf, BUFSIZE, _("Delete playlist %s [y/n] ? "), str); + snprintf(buf, BUFSIZE, _("Delete playlist %s [%s/%s] ? "), str, YES, NO); g_free(str); key = tolower(screen_getch(screen->status_window.w, buf)); if( key==KEY_RESIZE ) screen_resize(); - if( key!='y' ) + if( key != YES[0] ) { screen_status_printf(_("Aborted!")); return 0; @@ -318,7 +319,6 @@ handle_delete(screen_t *screen, mpdclient_t *c) if( mpdclient_cmd_delete_playlist(c, plf->path) ) { - beep(); return -1; } screen_status_printf(_("Playlist deleted!")); |