[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 6.0-40-g60b91fb

Sandro Tosi morph at debian.org
Sat Aug 27 23:02:21 UTC 2011


The following commit has been merged in the master branch:
commit 60b91fbde6ded27722ee2f67d324832202d127ae
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Aug 28 00:26:43 2011 +0200

    pass the Bugreport instance back to reportbug from GTK+ UI; Closes: #568761

diff --git a/debian/changelog b/debian/changelog
index 478b29a..2632946 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -42,14 +42,14 @@ reportbug (6.2) UNRELEASED; urgency=low
     - make get_report() return the Bugreport instance, containing all the bug
       information; now the UI does the visualization part, and we just pass
       objects around storing the info the UI will extract and display;
-      implicitly Closes: #571983
+      implicitly Closes: #571983, #568761
   * introduce the new --latest-first cli options to sort the bug reports lists
     to show the latest bugs first; thanks to Marcelo Magallon for the bug report
     and the idea; Closes: #66917
   * reportbug/checkbuildd.py
     - fix buildd.d.o checks after the service changes layout; Closes: #612520
 
- -- Sandro Tosi <morph at debian.org>  Sat, 27 Aug 2011 23:57:24 +0200
+ -- Sandro Tosi <morph at debian.org>  Sun, 28 Aug 2011 00:25:48 +0200
 
 reportbug (6.1) unstable; urgency=low
 
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 5998bde..1e834d2 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -327,6 +327,8 @@ class BugPage (gtk.EventBox, threading.Thread):
         self.timeout = timeout
         self.archived = archived
 
+        self.bug_status = None
+
         vbox = gtk.VBox (spacing=12)
         vbox.pack_start (gtk.Label ("Retrieving bug information."), expand=False)
 
@@ -346,6 +348,7 @@ class BugPage (gtk.EventBox, threading.Thread):
         if not info:
             self.application.run_once_in_main_thread (self.not_found)
         else:
+            self.bug_status = info[0]
             self.application.run_once_in_main_thread (self.found, info)
 
     def drop_progressbar (self):
@@ -406,7 +409,7 @@ class BugPage (gtk.EventBox, threading.Thread):
 
     def on_reply (self, button):
         # Return the bug number to reportbug
-        self.application.set_next_value (self.number)
+        self.application.set_next_value (self.bug_status)
         # Forward the assistant to the progress bar
         self.assistant.forward_page ()
         # Though we're only a page, we are authorized to destroy our parent :)

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list