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



Author: gburt
Date: Thu May  8 21:00:49 2008
New Revision: 3910
URL: http://svn.gnome.org/viewvc/banshee?rev=3910&view=rev

Log:
2008-05-08  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs: Fix
	issue with parent source not getting expanded when it should.  MTP and
	iPod sources should autoexpand properly now.


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

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceView.cs	Thu May  8 21:00:49 2008
@@ -410,12 +410,14 @@
             source.ChildSourceRemoved += OnSourceChildSourceRemoved;
             source.UserNotifyUpdated += OnSourceUserNotifyUpdated;
            
+            if (source.Parent != null && source.Parent.AutoExpand == true) {
+                Expand (parent);
+            }
+
             if (source.Expanded || source.AutoExpand == true) {
                 Expand (iter);
-            } else if (source.Parent != null && source.Parent.AutoExpand == true) {
-                Expand (FindSource (source.Parent));
             }
-            
+
             UpdateView ();
         }
 



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