diff options
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 341da62840..a9cbc64598 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -948,13 +948,6 @@ static bool poll_cancel_action(const char *path) | |||
948 | return ACTION_STD_CANCEL == get_action(CONTEXT_STD, TIMEOUT_NOBLOCK); | 948 | return ACTION_STD_CANCEL == get_action(CONTEXT_STD, TIMEOUT_NOBLOCK); |
949 | } | 949 | } |
950 | 950 | ||
951 | static int confirm_overwrite(void) | ||
952 | { | ||
953 | static const char *lines[] = { ID2P(LANG_REALLY_OVERWRITE) }; | ||
954 | static const struct text_message message = { lines, 1 }; | ||
955 | return gui_syncyesno_run(&message, NULL, NULL); | ||
956 | } | ||
957 | |||
958 | static bool check_new_name(const char *basename) | 951 | static bool check_new_name(const char *basename) |
959 | { | 952 | { |
960 | /* at least prevent escapes out of the base directory from keyboard- | 953 | /* at least prevent escapes out of the base directory from keyboard- |
@@ -1426,7 +1419,7 @@ static int clipboard_paste(void) | |||
1426 | case RELATE_DIFFERENT: | 1419 | case RELATE_DIFFERENT: |
1427 | if (file_exists(target.path)) { | 1420 | if (file_exists(target.path)) { |
1428 | /* If user chooses not to overwrite, cancel */ | 1421 | /* If user chooses not to overwrite, cancel */ |
1429 | if (confirm_overwrite() == YESNO_NO) { | 1422 | if (confirm_overwrite_yesno() == YESNO_NO) { |
1430 | rc = OPRC_NOOVERWRT; | 1423 | rc = OPRC_NOOVERWRT; |
1431 | break; | 1424 | break; |
1432 | } | 1425 | } |