[banshee] [Podcasting] Fix selection bug w/ DAP plugged in (bgo#636077)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Podcasting] Fix selection bug w/ DAP plugged in (bgo#636077)
- Date: Thu, 16 Dec 2010 21:35:29 +0000 (UTC)
commit 8517cfe9fc9e6eb04dd1032ae3c2c4394efcb04b
Author: Gabriel Burt <gabriel burt gmail com>
Date: Thu Dec 16 15:30:39 2010 -0600
[Podcasting] Fix selection bug w/ DAP plugged in (bgo#636077)
If you had a device plugged in, the hidden sync playlist created to
determine which podcast episodes to sync was screwing up the action
sensitivity/selection of the Podcasts source.
.../Banshee.Podcasting.Data/PodcastSource.cs | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs
index 367b9b4..f60b7b1 100644
--- a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs
+++ b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastSource.cs
@@ -316,7 +316,13 @@ namespace Banshee.Podcasting.Gui
protected override DatabaseTrackListModel CreateTrackModelFor (DatabaseSource src)
{
- return PodcastTrackModel = new PodcastTrackListModel (ServiceManager.DbConnection, DatabaseTrackInfo.Provider, src);
+ var model = new PodcastTrackListModel (ServiceManager.DbConnection, DatabaseTrackInfo.Provider, src);
+
+ if (PodcastTrackModel == null) {
+ PodcastTrackModel = model;
+ }
+
+ return model;
}
protected override IEnumerable<IFilterListModel> CreateFiltersFor (DatabaseSource src)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]