summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-04-10 20:26:19 +0000
committerJens Arnold <amiconn@rockbox.org>2005-04-10 20:26:19 +0000
commitc194fab1624a417c374f1702e8b5dbd5100bee83 (patch)
tree70cda3403747682db3d87daa53d6947531ad8e0f /apps
parentcef15c6efc2a0720a8b9b27cea036fc6ac82c829 (diff)
downloadrockbox-c194fab1624a417c374f1702e8b5dbd5100bee83.tar.gz
rockbox-c194fab1624a417c374f1702e8b5dbd5100bee83.tar.bz2
rockbox-c194fab1624a417c374f1702e8b5dbd5100bee83.zip
FM preset menu: store current preset immediately after leaving.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6265 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/radio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 59dd9dc37f..7ed4ef04cb 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -804,7 +804,6 @@ int handle_radio_presets_cb(int key, int m)
bool handle_radio_presets(void)
{
int result;
- int i;
bool reload_dir = false;
if(presets_loaded)
@@ -828,8 +827,8 @@ bool handle_radio_presets(void)
if (result >= 0) /* A preset was selected */
{
- i = menu_cursor(preset_menu);
- curr_freq = presets[i].frequency;
+ curr_preset = menu_cursor(preset_menu);
+ curr_freq = presets[curr_preset].frequency;
radio_set(RADIO_FREQUENCY, curr_freq);
remember_frequency();
}