diff options
author | Lluis Sanchez <slluis.devel@gmail.com> | 2011-08-01 15:01:16 +0400 |
---|---|---|
committer | Lluis Sanchez <slluis.devel@gmail.com> | 2011-08-01 15:01:16 +0400 |
commit | a2d0d85bbe1147b926531dbecd1ae88dae089b42 (patch) | |
tree | 178b428ce5be54b32711500a1421c4219fa2dc4c | |
parent | b6cc950ec3b09573045614098418a66a65de0e10 (diff) | |
parent | 2bf0f4b5c56c56473e0a055f0f987309f3dd366a (diff) |
Merge pull request #3 from knocte/master
Patch for mono-addins, to fix an issue which is currently affecting banshee. Thanks
-rw-r--r-- | Mono.Addins/Mono.Addins.Database/AddinDatabase.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs b/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs index 91dd779..2ce6e85 100644 --- a/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs +++ b/Mono.Addins/Mono.Addins.Database/AddinDatabase.cs @@ -940,12 +940,17 @@ namespace Mono.Addins.Database } return lastDomainId.ToString (); } - - internal void ResetCachedData () + + internal void ResetBasicCachedData () { allSetupInfos = null; addinSetupInfos = null; rootSetupInfos = null; + } + + internal void ResetCachedData () + { + ResetBasicCachedData (); hostIndex = null; cachedAddinSetupInfos.Clear (); if (addinEngine != null) @@ -1001,6 +1006,8 @@ namespace Mono.Addins.Database monitor.ReportError ("The add-in registry could not be rebuilt. It may be due to lack of write permissions to the directory: " + AddinDbDir, ex); } } + ResetBasicCachedData (); + Update (monitor, domain); } |