~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/mono-tools/windoc/WinDoc/BookmarkManager.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
                        if (!Directory.Exists (storagePath))
97
97
                                Directory.CreateDirectory (storagePath);
98
98
                        var path = Path.Combine (storagePath, "bookmarks.xml");
99
 
                        using (var file = File.Create (path))
100
 
                                serializer.Serialize (file, bookmarks);
 
99
                        try {
 
100
                                using (var file = File.Create (path))
 
101
                                        serializer.Serialize (file, bookmarks);
 
102
                        } catch (UnauthorizedAccessException) {}
101
103
                }
102
104
                
103
105
                public void CommitBookmarkChange (Entry entry)