banshee r4266 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Sources.Gui



Author: gburt
Date: Sun Jul 27 23:37:53 2008
New Revision: 4266
URL: http://svn.gnome.org/viewvc/banshee?rev=4266&view=rev

Log:
2008-07-27  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs:
	Fix the regression where the New Playlist wouldn't appear in the sources
	list when you were drag and dropping some tracks.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs	Sun Jul 27 23:37:53 2008
@@ -94,11 +94,7 @@
             else if ((Allocation.Height - y) < 20)
                 Vadjustment.Value += 30;
 
-            if (parent_source != null && parent_source.AcceptsInputFromSource (active_source)) {
-                ShowNewPlaylistUnder (parent_source, active_source);
-            } else if (drop_source != NewPlaylistSource) {
-                HideNewPlaylistRow ();
-            }
+            ShowNewPlaylistUnder (parent_source, active_source);
 
             if (!drop_source.AcceptsInputFromSource (active_source)) {
                 Gdk.Drag.Status (context, 0, time);
@@ -123,6 +119,10 @@
                 else
                     HideNewPlaylistRow ();
             }
+            
+            if (parent == null || active == null) {
+                return;
+            }
 
             NewPlaylistSource.SetParentSource (parent);
             if (!NewPlaylistSource.AcceptsInputFromSource (active)) {



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