From 9cacfd2419fe57111c12e8bcb66e5dab9b11d720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 28 May 2011 14:23:23 +0300 Subject: Don't allow setting max bitmap cache size to less than 1 in setup menu. We crash if it's set to 0. --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index e2106c9..3c3c157 100644 --- a/menu.c +++ b/menu.c @@ -21,7 +21,7 @@ void cText2SkinSetupPage::Setup(void) { Add(new cMenuEditBoolItem(tr(" Extract known tags"), &mData.StripAux)); Add(new cMenuEditBoolItem(tr("Use 'epgsearch' to check timer-conflicts"), &mData.CheckTimerConflict)); Add(new cOsdItem(tr("Flush image cache"), osUser1)); - Add(new cMenuEditIntItem(tr("Max. image cache size"), &mData.MaxCacheFill)); + Add(new cMenuEditIntItem(tr("Max. image cache size"), &mData.MaxCacheFill, 1)); SetCurrent(Get(current)); Display(); -- cgit v1.2.3