[banshee] [InternetArchive] Go to Search src on item close
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [banshee] [InternetArchive] Go to Search src on item close
- Date: Fri, 29 Jan 2010 02:01:04 +0000 (UTC)
commit ff1d97aba1528e4f4622355b6839edf878b0eb61
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu Jan 28 17:59:24 2010 -0800
[InternetArchive] Go to Search src on item close
.../Banshee.InternetArchive/DetailsSource.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs
index a9c5ab5..ba65e86 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs
@@ -229,6 +229,11 @@ namespace Banshee.InternetArchive
public bool Unmap ()
{
+ // If we were the active source, switch to the Search source
+ if (this == ServiceManager.SourceManager.ActiveSource) {
+ ServiceManager.SourceManager.SetActiveSource ((Parent as HomeSource).SearchSource);
+ }
+
item.Delete ();
Parent.RemoveChildSource (this);
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]