[tasque/transition: 194/213] [Tasque.Gtk] Only show count of active task in cat combo box



commit 0104c2d65825f58e8ba6f9527a0c884ccf471f0f
Author: Antonius Riha <antoniusriha gmail com>
Date:   Sun Aug 19 17:44:16 2012 +0200

    [Tasque.Gtk] Only show count of active task in cat combo box

 src/Tasque.Gtk/TaskWindow.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Tasque.Gtk/TaskWindow.cs b/src/Tasque.Gtk/TaskWindow.cs
index 03efd0e..7bb1b46 100644
--- a/src/Tasque.Gtk/TaskWindow.cs
+++ b/src/Tasque.Gtk/TaskWindow.cs
@@ -652,11 +652,11 @@ namespace Tasque
 			
 			int taskCount = 0;
 			if (model.GetPath (iter).Indices [0] == TreePath.NewFirst ().Indices [0])
-				taskCount = backend.Tasks.Count;
+				taskCount = backend.Tasks.Count (t => !t.IsComplete);
 			else {
 				var cat = backend.Categories.SingleOrDefault (c => c.Name == catName);
 				if (cat != null)
-					taskCount = cat.Count;
+					taskCount = cat.Count (t => !t.IsComplete);
 				else
 					catName = null;
 			}



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