From 9c8a325f71cb5144d84e44885977ef24841ab6d5 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sat, 19 May 2007 14:22:58 +0000 Subject: [PATCH] don't query non available slots --- data/startwizard.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/startwizard.xml b/data/startwizard.xml index 402eeef9..79b9fa85 100644 --- a/data/startwizard.xml +++ b/data/startwizard.xml @@ -30,7 +30,7 @@ self["rc"].startMoving() from Components.NimManager import nimmanager -self.condition = not nimmanager.nim_slots[0].empty +self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty @@ -48,7 +48,7 @@ self["arrowdown"].startMoving() from Components.NimManager import nimmanager -self.condition = not nimmanager.nim_slots[1].empty +self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty @@ -66,7 +66,7 @@ self["arrowdown"].startMoving() from Components.NimManager import nimmanager -self.condition = not nimmanager.nim_slots[2].empty +self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty @@ -84,7 +84,7 @@ self["arrowdown"].startMoving() from Components.NimManager import nimmanager -self.condition = not nimmanager.nim_slots[3].empty +self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty -- 2.30.2