[banshee] TrackInfo: simplify IsPlaying property logic



commit c99bf0eca7517eacae5d63cf8740586fa07c2aa4
Author: Andrés G. Aragoneses <knocte gmail com>
Date:   Wed Jan 22 00:59:18 2014 +0100

    TrackInfo: simplify IsPlaying property logic

 .../Banshee.Core/Banshee.Collection/TrackInfo.cs   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs 
b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
index 2014e72..0447bf3 100644
--- a/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
+++ b/src/Core/Banshee.Core/Banshee.Collection/TrackInfo.cs
@@ -145,7 +145,7 @@ namespace Banshee.Collection
         }
 
         public virtual bool IsPlaying {
-            get { return (IsPlayingMethod != null) ? IsPlayingMethod (this) : false; }
+            get { return IsPlayingMethod != null && IsPlayingMethod (this); }
         }
 
         [Exportable (ExportName = "URI")]


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