banshee r3499 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Sources
- From: scottp svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3499 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Sources
- Date: Fri, 21 Mar 2008 02:29:07 +0000 (GMT)
Author: scottp
Date: Fri Mar 21 02:29:06 2008
New Revision: 3499
URL: http://svn.gnome.org/viewvc/banshee?rev=3499&view=rev
Log:
* src/Core/Banshee.Services/Banshee.Sources/Source.cs: Better
polymorphism.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/Source.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/Source.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/Source.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Sources/Source.cs Fri Mar 21 02:29:06 2008
@@ -81,9 +81,8 @@
protected void OnSetupComplete ()
{
- if (this is ITrackModelSource) {
- ITrackModelSource tm_source = (ITrackModelSource)this;
-
+ ITrackModelSource tm_source = this as ITrackModelSource;
+ if (tm_source != null) {
tm_source.TrackModel.Parent = this;
ServiceManager.DBusServiceManager.RegisterObject (tm_source.TrackModel);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]