[hamster-applet/gnome-2-28] include unsorted category when all is selected in the report form



commit 83e0dacfd8bc6f7e837312e92ed29f649bae843c
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sun Nov 8 21:14:10 2009 +0000

    include unsorted category when all is selected in the report form

 hamster/stats.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/hamster/stats.py b/hamster/stats.py
index f91b247..79fcb6e 100644
--- a/hamster/stats.py
+++ b/hamster/stats.py
@@ -159,9 +159,12 @@ class ReportChooserDialog(gtk.Dialog):
         
         categories = []
         for button in self.category_box.get_children():
-            if button.get_active() and button.value:
+            if button.get_active():
                 categories.append(button.value)
         
+        if None in categories:
+            categories = None # nothing is everything
+        
         # format, path, start_date, end_date
         self.emit("report-chosen", format, path,
                            self.start_date.get_date().date(),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]