banshee r3366 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.SmartPlaylist
- From: ahixon svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3366 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.SmartPlaylist
- Date: Sun, 2 Mar 2008 03:43:30 +0000 (GMT)
Author: ahixon
Date: Sun Mar 2 03:43:30 2008
New Revision: 3366
URL: http://svn.gnome.org/viewvc/banshee?rev=3366&view=rev
Log:
2008-03-02 Alexander Hixon <hixon alexander mediati org>
* src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs:
Add a null check before sorting out dependencies, so we don't bomb out on
creating a new simple Smart Playlist.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.SmartPlaylist/SmartPlaylistSource.cs Sun Mar 2 03:43:30 2008
@@ -232,10 +232,12 @@
dependencies.Clear ();
- foreach (SmartPlaylistQueryValue value in ConditionTree.SearchForValues<SmartPlaylistQueryValue> ()) {
- SmartPlaylistSource playlist = value.ObjectValue;
- playlist.Updated += OnDependencyUpdated;
- dependencies.Add (playlist);
+ if (ConditionTree != null) {
+ foreach (SmartPlaylistQueryValue value in ConditionTree.SearchForValues<SmartPlaylistQueryValue> ()) {
+ SmartPlaylistSource playlist = value.ObjectValue;
+ playlist.Updated += OnDependencyUpdated;
+ dependencies.Add (playlist);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]