[hamster-applet] include unsorted category when all is selected in the report form
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] include unsorted category when all is selected in the report form
- Date: Sun, 8 Nov 2009 21:15:09 +0000 (UTC)
commit 6e4acb63af96a4ca4689665292b0e14191284172
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 f3493b7..47d1987 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]