blam r676 - trunk/src



Author: cmartin
Date: Sun Mar  8 23:52:26 2009
New Revision: 676
URL: http://svn.gnome.org/viewvc/blam?rev=676&view=rev

Log:
Don't crash when dropping over a channel.

A drop on top of a channel wil sometimes produce a destination which is null. Check
for that and don't do anything.

Modified:
   trunk/src/ChannelList.cs

Modified: trunk/src/ChannelList.cs
==============================================================================
--- trunk/src/ChannelList.cs	(original)
+++ trunk/src/ChannelList.cs	Sun Mar  8 23:52:26 2009
@@ -139,7 +139,7 @@
 				 * inside another group.
 				 * FIXME: Make it possible for a group to be inside another group.
 				 */
-				if(dst is Channel || src is ChannelGroup){
+				if(dst is Channel || src is ChannelGroup || dst == null){
 					return;
 				}
 



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