1
0
Fork 0
forked from len0rd/rockbox

Make kbd_input() show a cancel splash to indicate user abort better and for better consistency all over the place. Change checking for its return value (style-wise) at some places too.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22269 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-08-12 14:38:25 +00:00
parent 345920fe7e
commit 18e40e0f4c
11 changed files with 26 additions and 21 deletions

View file

@ -182,10 +182,9 @@ bool save_changes(int overwrite)
if (newfile || !overwrite)
{
if(rb->kbd_input(filename,MAX_PATH))
if(rb->kbd_input(filename,MAX_PATH) < 0)
{
newfile = true;
rb->splash(HZ, "Cancelled");
return false;
}
}