blam r663 - trunk/src



Author: cmartin
Date: Fri Oct 10 12:04:48 2008
New Revision: 663
URL: http://svn.gnome.org/viewvc/blam?rev=663&view=rev

Log:
Save the channel's iterator when moving to a group.

Modified:
   trunk/src/ChannelList.cs

Modified: trunk/src/ChannelList.cs
==============================================================================
--- trunk/src/ChannelList.cs	(original)
+++ trunk/src/ChannelList.cs	Fri Oct 10 12:04:48 2008
@@ -442,14 +442,12 @@
             foreach(ChannelGroup group in Application.TheApp.CCollection.Groups){
                 if(group.Name == groupname){
                     group.Channels.Add(chan);
-                    iter = group.Iter;
-                    (model as TreeStore).AppendValues(iter, chan as IChannel);
+                    chan.Iter = (model as TreeStore).AppendValues(group.Iter, chan as IChannel);
                     /* Needed? */
-                    model.EmitRowChanged(model.GetPath(iter), iter);
+                    model.EmitRowChanged(model.GetPath(group.Iter), group.Iter);
                 }
             }
 
-            iter = chan.Iter;
             (model as TreeStore).Remove(ref iter);
             //Application.TheApp.CCollection.Remove(chan as IChannel);
         }



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