[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 4.0-29-gb92ef3b

Sandro Tosi morph at debian.org
Sun Apr 5 19:26:22 UTC 2009


The following commit has been merged in the master branch:
commit 7d6e4ebbc4185425e9a34ba29cb76dbece711ede
Author: Luca Bruno <lethalman88 at gmail.com>
Date:   Thu Mar 26 15:45:16 2009 +0100

    fix default value in non-multiple menus; Closes: #496969

diff --git a/debian/changelog b/debian/changelog
index e3674e8..c014e08 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,6 +27,8 @@ reportbug (4.1) UNRELEASED; urgency=low
     - fix display_failure handling
     - make BTS query tree columns sortable
     - ui layout improvements
+  * reportbug/ui/urwid_ui.py
+    - fix default value in non-multiple menus; Closes: #496969
   * debian/control
     - added suggests for python-vte and python-gnome2-extras (for spell check)
   * debian/copyright, reportbug/ui/gtk2_ui.py
diff --git a/reportbug/ui/urwid_ui.py b/reportbug/ui/urwid_ui.py
index f69c179..cbd47d2 100644
--- a/reportbug/ui/urwid_ui.py
+++ b/reportbug/ui/urwid_ui.py
@@ -449,7 +449,7 @@ def menu(par, options, prompt, default=None, title=None, any_ok=False,
             b = urwid.AttrWrap( b, 'scrolllabel' )
             desc = ''
         else:
-            b = urwid.RadioButton( rlist, label_button(option, desc) )
+            b = urwid.RadioButton( rlist, label_button(option, desc), state=(option == default) )
             b.exitcode = option
             b = urwid.AttrWrap( b, 'selectable','focus' )
         widgets.append((b, desc))

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list