banshee r4386 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Sources
- From: blorentz svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4386 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Sources
- Date: Sat, 16 Aug 2008 10:15:07 +0000 (UTC)
Author: blorentz
Date: Sat Aug 16 10:15:07 2008
New Revision: 4386
URL: http://svn.gnome.org/viewvc/banshee?rev=4386&view=rev
Log:
2008-08-16 Bertrand Lorentz <bertrand lorentz gmail com>
* src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs: Check if
the cast of the TrackModel to DatabaseTrackListModel succeeded, to avoid
a potential crash (BGO #547092).
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/DatabaseSource.cs Sat Aug 16 10:15:07 2008
@@ -414,6 +414,9 @@
return false;
DatabaseTrackListModel model = (source as ITrackModelSource).TrackModel as DatabaseTrackListModel;
+ if (model == null) {
+ return false;
+ }
WithTrackSelection (model, AddTrackRange);
OnTracksAdded ();
OnUserNotifyUpdated ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]