[banshee] [PlayQueueSource] Advance the current track if StopWhenFinished is on
- From: Alexander Kojevnikov <alexk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [PlayQueueSource] Advance the current track if StopWhenFinished is on
- Date: Wed, 11 Nov 2009 06:13:06 +0000 (UTC)
commit dbb577695e0cbac9e563335f6c84fc01b599e56a
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Wed Nov 11 16:59:51 2009 +1100
[PlayQueueSource] Advance the current track if StopWhenFinished is on
Fixes the second issue from bgo#563021
.../Banshee.PlayQueue/PlayQueueSource.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
index c35381e..ee1f510 100644
--- a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
+++ b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
@@ -481,6 +481,12 @@ namespace Banshee.PlayQueue
ServiceManager.PlaybackController.StopWhenFinished = true;
}
}
+ if (ServiceManager.PlaybackController.StopWhenFinished) {
+ if (current_track != null && ServiceManager.PlayerEngine.CurrentTrack == current_track) {
+ int index = TrackModel.IndexOf (current_track) + 1;
+ SetCurrentTrack (index < Count ? TrackModel[index] as DatabaseTrackInfo : null);
+ }
+ }
} else if (args.Event == PlayerEvent.StartOfStream) {
if (TrackModel.IndexOf (ServiceManager.PlayerEngine.CurrentTrack) != -1) {
SetCurrentTrack (ServiceManager.PlayerEngine.CurrentTrack as DatabaseTrackInfo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]