[blam] ChannelList: Check the channel's update event on add



commit b6fbe40b8e6729b7b41dcd7713e1f83547580c5c
Author: Carlos Martín Nieto <carlos cmartin tk>
Date:   Thu Oct 14 14:38:23 2010 +0200

    ChannelList: Check the channel's update event on add

 src/ChannelList.cs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ChannelList.cs b/src/ChannelList.cs
index 1a0da9e..fe020c2 100644
--- a/src/ChannelList.cs
+++ b/src/ChannelList.cs
@@ -200,11 +200,13 @@ namespace Imendio.Blam {
         public void Add (IChannel channel)
         {
             channel.Iter = (this.Model as TreeStore).AppendValues(channel);
+            channel.Updated += Updated;
         }
 
 		public void AddToGroup(IChannel group, IChannel channel)
 		{
 			channel.Iter = (Model as TreeStore).AppendValues(group.Iter, channel);
+            channel.Updated += Updated;
 		}
 
         public void AddGroup(IChannel channel)



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