[tasque/transition: 74/213] Fix a bug introduced by 236ee81e81f013fd89972d4e6e5ad58bdc45ab08.



commit a22f946146867337e5c243747ccdbebc15b37829
Author: Antonius Riha <antoniusriha gmail com>
Date:   Fri Jul 13 15:54:34 2012 +0200

    Fix a bug introduced by 236ee81e81f013fd89972d4e6e5ad58bdc45ab08.

 src/ObservableTransformCollections |    2 +-
 src/tasque/RemoteControl.cs        |    8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/ObservableTransformCollections b/src/ObservableTransformCollections
index ac9b242..8e6c05f 160000
--- a/src/ObservableTransformCollections
+++ b/src/ObservableTransformCollections
@@ -1 +1 @@
-Subproject commit ac9b242a22446cb627b452aebad20c67ed59c7be
+Subproject commit 8e6c05f058a95d48ba7ea381b7e1cac436a0e3de
diff --git a/src/tasque/RemoteControl.cs b/src/tasque/RemoteControl.cs
index d2aea30..ae64559 100644
--- a/src/tasque/RemoteControl.cs
+++ b/src/tasque/RemoteControl.cs
@@ -267,7 +267,13 @@ namespace Tasque
 				return false;
 			
 			var categories = Application.Backend.Categories;
-			return categories.Contains (task.Category);
+			var cat = categories.SingleOrDefault (c => c.Name == categoryName);
+			if (cat != null) {
+				task.Category = cat;
+				return true;
+			}
+
+			return false;
 		}
 		
 		/// <summary>



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