From 3846ba7338115dc5456bac247d47d6610cd5f001 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 6 Aug 2000 14:08:33 +0200 Subject: [PATCH] Bugfix in closing window in DEBUG_OSD mode --- HISTORY | 3 ++- dvbapi.c | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index f1466477..04cc2d59 100644 --- a/HISTORY +++ b/HISTORY @@ -100,7 +100,7 @@ Video Disk Recorder Revision History the 'timers.conf' file with a text editor, or by defining/modifying the timer via the SVDRP interface. -2000-08-06: +2000-08-06: Version 0.61 - When scrolling through a list it now moves a full page up or down when the cursor reaches the top or bottom of the menu (thanks to Heino Goldenstein!). @@ -122,3 +122,4 @@ Video Disk Recorder Revision History - New SVDRP command UPDT to update an existing timer (or add a new one if it doesn't yet exist). - New version of the 'epg2timers' tool (with a modified channel list). +- Bugfix in closing window in DEBUG_OSD mode. diff --git a/dvbapi.c b/dvbapi.c index 91fe3cf7..0562a4f5 100644 --- a/dvbapi.c +++ b/dvbapi.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbapi.c 1.21 2000/08/06 12:00:13 kls Exp $ + * $Id: dvbapi.c 1.22 2000/08/06 14:06:14 kls Exp $ */ #include "dvbapi.h" @@ -1239,7 +1239,10 @@ void cDvbApi::Open(int w, int h) void cDvbApi::Close(void) { #ifdef DEBUG_OSD - delwin(window); + if (window) { + delwin(window); + window = 0; + } #else Cmd(OSD_Close); #endif