From: ewt Date: Sat, 28 Aug 1999 18:22:20 +0000 (+0000) Subject: defaults weren't set properly for ListboxChoiceWindow() X-Git-Tag: r0-50~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5547d7966fd233cc8fd71297d0487fe1bf33eab;p=thirdparty%2Fnewt.git defaults weren't set properly for ListboxChoiceWindow() --- diff --git a/snack.py b/snack.py index 0392776..27a2805 100644 --- a/snack.py +++ b/snack.py @@ -441,9 +441,9 @@ def ListboxChoiceWindow(screen, title, text, items, text = item key = count - if (count == default): + if (default == count): default = key - elif (count == item): + elif (default == item): default = key l.append(text, key)