From 2ad944f6616d6021e4f5f3f5dd9e38e29baf1454 Mon Sep 17 00:00:00 2001 From: gixxpunk Date: Thu, 12 May 2011 18:45:34 +0000 Subject: [PATCH] audio-select testfix -> http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/p130017-bug-audio-optionen/#post130017 git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1466 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/4292dac8a6700fcfb44bcd66e3f289a2b1ac43f0 Author: gixxpunk Date: 2011-05-12 (Thu, 12 May 2011) Origin message was: ------------------ - audio-select testfix -> http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/p130017-bug-audio-optionen/#post130017 git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1466 e54a6e83-5905-42d5-8d5c-058d10e6a962 ------------------ This commit was generated by Migit --- src/gui/audio_select.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/audio_select.cpp b/src/gui/audio_select.cpp index b952587d6..dfae0a261 100644 --- a/src/gui/audio_select.cpp +++ b/src/gui/audio_select.cpp @@ -94,7 +94,9 @@ int CAudioSelectMenuHandler::doMenu () CSubtitleChangeExec SubtitleChanger; - AudioSelector.addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL); + AudioSelector.addIntroItems(NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, CMenuWidget::BTN_TYPE_CANCEL); + + unsigned int shortcut_num = 1; // -- setup menue due to Audio PIDs if (g_RemoteControl->current_PIDs.APIDs.size() > 1) @@ -109,6 +111,7 @@ int CAudioSelectMenuHandler::doMenu () fw[i] = new CMenuForwarderNonLocalized(g_RemoteControl->current_PIDs.APIDs[i].desc, true, NULL, APIDChanger, apid, CRCInput::convertDigitToKey(i + 1)); fw[i]->setItemButton(NEUTRINO_ICON_BUTTON_OKAY, true); AudioSelector.addItem(fw[i], (i == g_RemoteControl->current_PIDs.PIDs.selected_apid)); + shortcut_num = i+1; } AudioSelector.addItem(GenericMenuSeparatorLine); } @@ -131,7 +134,6 @@ int CAudioSelectMenuHandler::doMenu () int curnum = channelList->getActiveChannelNumber(); CZapitChannel * cc = channelList->getChannel(curnum); - unsigned int shortcut_num = 1; bool sep_added = false; if(cc) {