mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed deleting a menu item in case the next item is not selectable
This commit is contained in:
parent
4162bff1e7
commit
5b2aaeaedd
@ -1182,6 +1182,7 @@ Andreas Brugger <brougs78@gmx.net>
|
|||||||
Dino Ravnic <dino.ravnic@fer.hr>
|
Dino Ravnic <dino.ravnic@fer.hr>
|
||||||
for fixing some characters in the iso8859-2 font file
|
for fixing some characters in the iso8859-2 font file
|
||||||
for fixing some errors in the Croatian language texts
|
for fixing some errors in the Croatian language texts
|
||||||
|
for fixing deleting a menu item in case the next item is not selectable
|
||||||
|
|
||||||
Olaf Titz <olaf@bigred.inka.de>
|
Olaf Titz <olaf@bigred.inka.de>
|
||||||
for fixing some typos in the Makefile's 'font' target
|
for fixing some typos in the Makefile's 'font' target
|
||||||
|
2
HISTORY
2
HISTORY
@ -3278,3 +3278,5 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed a possible race condition in cDevice::Action() (thanks to Mattias Grönlund).
|
- Fixed a possible race condition in cDevice::Action() (thanks to Mattias Grönlund).
|
||||||
- Fixed the default quality value when grabbing a JPEG image (thanks to Patrick
|
- Fixed the default quality value when grabbing a JPEG image (thanks to Patrick
|
||||||
Gleichmann).
|
Gleichmann).
|
||||||
|
- Fixed deleting a menu item in case the next item is not selectable (thanks to
|
||||||
|
Dino Ravnic).
|
||||||
|
11
osdbase.c
11
osdbase.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: osdbase.c 1.14 2004/07/17 13:29:13 kls Exp $
|
* $Id: osdbase.c 1.15 2005/01/07 16:16:41 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "osdbase.h"
|
#include "osdbase.h"
|
||||||
@ -149,8 +149,13 @@ void cOsdMenu::SetHelp(const char *Red, const char *Green, const char *Yellow, c
|
|||||||
void cOsdMenu::Del(int Index)
|
void cOsdMenu::Del(int Index)
|
||||||
{
|
{
|
||||||
cList<cOsdItem>::Del(Get(Index));
|
cList<cOsdItem>::Del(Get(Index));
|
||||||
if (current == Count())
|
int count = Count();
|
||||||
current--;
|
while (current < count && !SelectableItem(current))
|
||||||
|
current++;
|
||||||
|
if (current == count) {
|
||||||
|
while (current > 0 && !SelectableItem(current))
|
||||||
|
current--;
|
||||||
|
}
|
||||||
if (Index == first && first > 0)
|
if (Index == first && first > 0)
|
||||||
first--;
|
first--;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user