[banshee/1.5.1-fixes: 8/56] [PlaybackControllerService] Call IncrementLastPlayed() from OnStopped()



commit 6d2b82946042a180c65cc232faf7acf1442320b4
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Fri Oct 16 10:54:35 2009 +1100

    [PlaybackControllerService] Call IncrementLastPlayed() from OnStopped()
    
    Without this call the OnPlaybackFinished() handler is never triggered
    when the playback stops (bgo#563021)

 .../PlaybackControllerService.cs                   |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.PlaybackController/PlaybackControllerService.cs b/src/Core/Banshee.Services/Banshee.PlaybackController/PlaybackControllerService.cs
index 5c52f55..8b58e70 100644
--- a/src/Core/Banshee.Services/Banshee.PlaybackController/PlaybackControllerService.cs
+++ b/src/Core/Banshee.Services/Banshee.PlaybackController/PlaybackControllerService.cs
@@ -358,6 +358,8 @@ namespace Banshee.PlaybackController
 
         protected virtual void OnStopped ()
         {
+            player_engine.IncrementLastPlayed ();
+
             EventHandler handler = Stopped;
             if (handler != null) {
                 handler (this, EventArgs.Empty);



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