[banshee] [Fixup] Clear model's cache when appropriate
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Fixup] Clear model's cache when appropriate
- Date: Tue, 2 Nov 2010 00:21:30 +0000 (UTC)
commit e7039c5cad561e9a95653a88517556552c8c8ca9
Author: Raimo Radczewski <raimoradczewski googlemail com>
Date: Sat Oct 30 22:16:54 2010 +0200
[Fixup] Clear model's cache when appropriate
https://bugzilla.gnome.org/show_bug.cgi?id=633579
Signed-off-by: Gabriel Burt <gabriel burt gmail com>
.../Banshee.Fixup/Banshee.Fixup/ProblemModel.cs | 1 +
.../Migo/Migo.Syndication/MigoModelProvider.cs | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.Fixup/Banshee.Fixup/ProblemModel.cs b/src/Extensions/Banshee.Fixup/Banshee.Fixup/ProblemModel.cs
index 1add9d0..75ae21f 100644
--- a/src/Extensions/Banshee.Fixup/Banshee.Fixup/ProblemModel.cs
+++ b/src/Extensions/Banshee.Fixup/Banshee.Fixup/ProblemModel.cs
@@ -139,6 +139,7 @@ namespace Banshee.Fixup
count = 0;
selected_count = 0;
ServiceManager.DbConnection.Execute ("DELETE FROM MetadataProblems");
+ Problem.Provider.ClearCache ();
OnCleared ();
}
diff --git a/src/Libraries/Migo/Migo.Syndication/MigoModelProvider.cs b/src/Libraries/Migo/Migo.Syndication/MigoModelProvider.cs
index 03f4345..7c330f6 100644
--- a/src/Libraries/Migo/Migo.Syndication/MigoModelProvider.cs
+++ b/src/Libraries/Migo/Migo.Syndication/MigoModelProvider.cs
@@ -49,6 +49,11 @@ namespace Migo.Syndication
{
}
+ public void ClearCache ()
+ {
+ full_cache.Clear ();
+ }
+
#region Overrides
public override T FetchSingle (long id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]