[f-spot] App.Instance.Organizer will never be null



commit f3d83ae4771191f788dbc057fe734588904d5761
Author: Paul Werner Bou <paul purecodes org>
Date:   Fri Nov 20 13:03:20 2009 +0100

    App.Instance.Organizer will never be null

 src/Extensions/PhotoSelectionCondition.cs |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/PhotoSelectionCondition.cs b/src/Extensions/PhotoSelectionCondition.cs
index 74848c1..9649f78 100644
--- a/src/Extensions/PhotoSelectionCondition.cs
+++ b/src/Extensions/PhotoSelectionCondition.cs
@@ -23,8 +23,7 @@ namespace FSpot.Extensions
 	{
 		public PhotoSelectionCondition()
 		{
-			if (App.Instance.Organizer != null)
-				App.Instance.Organizer.Selection.Changed += delegate { NotifyChanged ();};
+			App.Instance.Organizer.Selection.Changed += delegate { NotifyChanged ();};
 		}
 
 		public override bool Evaluate (NodeElement conditionNode)



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