diff options
author | Lluis Sanchez <lluis@novell.com> | 2006-09-04 20:22:06 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2006-09-04 20:22:06 +0400 |
commit | e18c424be61b0a7c4b099b90e0e70e82ce8e7a76 (patch) | |
tree | 78149efd2c1b326506c87859709597ad3e25dcc6 | |
parent | 1b96b7450aa81723811bbc7e3a2b5c100b4f4bd3 (diff) |
2006-09-04 Lluis Sanchez Gual <lluis@novell.com>
* MonoDevelop.Projects/Project.cs: Workaround Mono bug. The watcher
seems to stop watching if an exception is thrown in the event handler.
svn path=/trunk/monodevelop/; revision=64895
-rw-r--r-- | Core/src/MonoDevelop.Projects/ChangeLog | 5 | ||||
-rw-r--r-- | Core/src/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/Core/src/MonoDevelop.Projects/ChangeLog b/Core/src/MonoDevelop.Projects/ChangeLog index 9a3acc2d42..86bb7f1450 100644 --- a/Core/src/MonoDevelop.Projects/ChangeLog +++ b/Core/src/MonoDevelop.Projects/ChangeLog @@ -1,3 +1,8 @@ +2006-09-04 Lluis Sanchez Gual <lluis@novell.com> + + * MonoDevelop.Projects/Project.cs: Workaround Mono bug. The watcher + seems to stop watching if an exception is thrown in the event handler. + 2006-08-30 Lluis Sanchez Gual <lluis@novell.com> * MonoDevelop.Projects.Text/TextFile.cs: Workaround a mono bug diff --git a/Core/src/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs b/Core/src/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs index b6789a4aff..3c3df39e96 100644 --- a/Core/src/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs +++ b/Core/src/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs @@ -556,7 +556,13 @@ namespace MonoDevelop.Projects ProjectFile file = GetProjectFile (e.FullPath); if (file != null) { isDirty = true; - NotifyFileChangedInProject (file); + try { + NotifyFileChangedInProject (file); + } catch { + // Workaround Mono bug. The watcher seems to + // stop watching if an exception is thrown in + // the event handler + } } } |