summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-08-09 00:33:33 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-08-09 00:33:33 +0000
commitc8c80a5391d028e0ee40432568f0a40eb623b249 (patch)
tree0086336c0c187cf737959172012d1da97e157ad4
parent967431691dd2388d3583518147a0b9adb2f0ec21 (diff)
Allow recording source to be set from recording context menu. Not a very nice solution for something that already was an ugly hack...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14251 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/menus/recording_menu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c
index d53d42ddfa..e2be128d2d 100644
--- a/apps/menus/recording_menu.c
+++ b/apps/menus/recording_menu.c
@@ -65,7 +65,7 @@
#include "recording.h"
-static bool no_source_in_menu = true;
+static bool no_source_in_menu = false;
int recmenu_callback(int action,const struct menu_item_ex *this_item);
static int recsource_func(void)
@@ -846,8 +846,11 @@ MAKE_MENU(recording_settings_menu, ID2P(LANG_RECORDING_SETTINGS),
bool recording_menu(bool no_source)
{
+ bool retval;
no_source_in_menu = no_source;
- return do_menu(&recording_settings_menu, NULL) == MENU_ATTACHED_USB;
+ retval = do_menu(&recording_settings_menu, NULL) == MENU_ATTACHED_USB;
+ no_source_in_menu = false; /* always fall back to the default */
+ return retval;
};
MENUITEM_FUNCTION(recording_settings, MENU_FUNC_USEPARAM, ID2P(LANG_RECORDING_SETTINGS),