]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
defaults weren't set properly for ListboxChoiceWindow()
authorewt <ewt>
Sat, 28 Aug 1999 18:22:20 +0000 (18:22 +0000)
committerewt <ewt>
Sat, 28 Aug 1999 18:22:20 +0000 (18:22 +0000)
snack.py

index 03927765c784be816777f5cffa6b642e74f6bff2..27a28056b26d828cc1bb6bde197221e51f29164b 100644 (file)
--- 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)