Change the "Rename failed" message to a splash.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22472 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-08-23 15:22:50 +00:00
parent 595a828e0d
commit 6bc092db0e

View file

@ -583,12 +583,8 @@ static bool rename_file(void)
if (!kbd_input(newname + pathlen, (sizeof newname)-pathlen)) { if (!kbd_input(newname + pathlen, (sizeof newname)-pathlen)) {
if (!strlen(newname + pathlen) || if (!strlen(newname + pathlen) ||
(rename(selected_file, newname) < 0)) { (rename(selected_file, newname) < 0)) {
lcd_clear_display();
lcd_puts(0,0,str(LANG_RENAME));
lcd_puts(0,1,str(LANG_FAILED));
lcd_update();
cond_talk_ids_fq(LANG_RENAME, LANG_FAILED); cond_talk_ids_fq(LANG_RENAME, LANG_FAILED);
sleep(HZ*2); splashf(HZ*2, "%s %s", str(LANG_RENAME), str(LANG_FAILED));
} }
else else
onplay_result = ONPLAY_RELOAD_DIR; onplay_result = ONPLAY_RELOAD_DIR;