From 18e40e0f4c45bf204571e548347e23b1bb5b4afd Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 12 Aug 2009 14:38:25 +0000 Subject: 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 --- apps/plugins/text_editor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/plugins/text_editor.c') diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 06dc098..473bb68 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c @@ -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; } } -- cgit v1.1