blam r684 - trunk/src
- From: cmartin svn gnome org
- To: svn-commits-list gnome org
- Subject: blam r684 - trunk/src
- Date: Tue, 10 Mar 2009 16:21:58 +0000 (UTC)
Author: cmartin
Date: Tue Mar 10 16:21:58 2009
New Revision: 684
URL: http://svn.gnome.org/viewvc/blam?rev=684&view=rev
Log:
Also move a channel out of a group when dropping on to of a top-level
channel.
Add this last (hopefully) case to the list of checks.
Modified:
trunk/src/ChannelList.cs
Modified: trunk/src/ChannelList.cs
==============================================================================
--- trunk/src/ChannelList.cs (original)
+++ trunk/src/ChannelList.cs Tue Mar 10 16:21:58 2009
@@ -150,6 +150,12 @@
TreePath dst_path_parent = path.Copy();
dst_path_parent.Up();
+ if(dst is Channel && path.Depth == 1 && // dst is top-level
+ src is Channel && Model.GetPath(src.Iter).Depth == 2){ // src is in a group
+ Blam.Application.TheApp.CCollection.Remove(src);
+ Blam.Application.TheApp.CCollection.Add(src);
+ }
+
/*
* A channel can't become a group and a group can't be
* inside another group and it doesn't make sense to move
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]