[banshee] [Banshee.Moblin] handle # past items changed



commit 3e3320531ed97c4e2861c07f29946d90bc53c85b
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Wed Oct 14 22:45:38 2009 -0700

    [Banshee.Moblin] handle # past items changed

 .../Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs  |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs b/src/Extensions/Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs
index 2fd9560..91e3684 100644
--- a/src/Extensions/Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs
+++ b/src/Extensions/Banshee.Moblin/Banshee.Moblin/PlayQueueBox.cs
@@ -86,7 +86,10 @@ namespace Banshee.Moblin
 
             if (MoblinPanel.Instance.ToolbarPanel != null) {
                 int old_pref = play_queue.PlayedSongsPreference.Value;
-                MoblinPanel.Instance.ToolbarPanel.ShowBeginEvent += (o, a) => play_queue.PlayedSongsPreference.Value = 2;
+                MoblinPanel.Instance.ToolbarPanel.ShowBeginEvent += (o, a) => {
+                    old_pref = play_queue.PlayedSongsPreference.Value;
+                    play_queue.PlayedSongsPreference.Value = 2;
+                };
                 MoblinPanel.Instance.ToolbarPanel.HideBeginEvent += (o, a) => play_queue.PlayedSongsPreference.Value = old_pref;
             }
             



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