diff options
author | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-29 11:05:36 +0000 |
---|---|---|
committer | Yoshihisa Uchida <uchida@rockbox.org> | 2010-06-29 11:05:36 +0000 |
commit | 07d03729ff537eca8429cea27c1f2d15f04ec54f (patch) | |
tree | 2f72e7d67f3da45710c2dd302f16654b80aa1016 /apps/plugins/text_viewer/tv_menu.c | |
parent | 7195f3a30cc73e1540a590c519c9a2ecec137952 (diff) | |
download | rockbox-07d03729ff537eca8429cea27c1f2d15f04ec54f.tar.gz rockbox-07d03729ff537eca8429cea27c1f2d15f04ec54f.zip |
text_viewer: callback functions are changed to the function that returns int value.
And the text viewer quits when the problem occurs by callback functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27172 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/text_viewer/tv_menu.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_menu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/text_viewer/tv_menu.c b/apps/plugins/text_viewer/tv_menu.c index 2e3a26d785..7e706eb06a 100644 --- a/apps/plugins/text_viewer/tv_menu.c +++ b/apps/plugins/text_viewer/tv_menu.c | |||
@@ -366,7 +366,8 @@ unsigned tv_display_menu(void) | |||
366 | case 1: /* change settings */ | 366 | case 1: /* change settings */ |
367 | tv_copy_preferences(&new_prefs); | 367 | tv_copy_preferences(&new_prefs); |
368 | result = tv_options_menu(); | 368 | result = tv_options_menu(); |
369 | tv_set_preferences(&new_prefs); | 369 | if (!tv_set_preferences(&new_prefs)) |
370 | result = TV_MENU_RESULT_ERROR; | ||
370 | break; | 371 | break; |
371 | case 2: /* playback control */ | 372 | case 2: /* playback control */ |
372 | playback_control(NULL); | 373 | playback_control(NULL); |