[banshee] [Fixup] Clear model's cache when appropriate



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]