diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-08-12 14:38:25 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-12 14:38:25 +0000 |
commit | 18e40e0f4c45bf204571e548347e23b1bb5b4afd (patch) | |
tree | 81aa6fdc600db2576b6581bc596d09ffb7390cec /apps/plugins/text_editor.c | |
parent | 345920fe7e9d261abf564a71cf9675fbe72679de (diff) | |
download | rockbox-18e40e0f4c45bf204571e548347e23b1bb5b4afd.tar.gz rockbox-18e40e0f4c45bf204571e548347e23b1bb5b4afd.zip |
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
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r-- | apps/plugins/text_editor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c index 06dc098501..473bb68ead 100644 --- a/apps/plugins/text_editor.c +++ b/apps/plugins/text_editor.c | |||
@@ -182,10 +182,9 @@ bool save_changes(int overwrite) | |||
182 | 182 | ||
183 | if (newfile || !overwrite) | 183 | if (newfile || !overwrite) |
184 | { | 184 | { |
185 | if(rb->kbd_input(filename,MAX_PATH)) | 185 | if(rb->kbd_input(filename,MAX_PATH) < 0) |
186 | { | 186 | { |
187 | newfile = true; | 187 | newfile = true; |
188 | rb->splash(HZ, "Cancelled"); | ||
189 | return false; | 188 | return false; |
190 | } | 189 | } |
191 | } | 190 | } |