Index: xword/XWord/AddinActions.cs =================================================================== --- xword/XWord/AddinActions.cs (revision 22640) +++ xword/XWord/AddinActions.cs (working copy) @@ -358,8 +358,10 @@ /// The full name of the wiki page. /// The contant to be saved. /// The wiki syntax of the saved page. - private void SavePage(String pageName, ref String pageContent, String syntax) + /// TRUE if the page was saved successfully. + private bool SavePage(String pageName, ref String pageContent, String syntax) { + bool saveSucceeded = false; SaveGrammarAndSpellingSettings(); DisableGrammarAndSpellingChecking(); @@ -373,9 +375,11 @@ { Log.Error("Failed to save page " + pageName + "on server " + addin.serverURL); UserNotifier.Error("There was an error on the server when trying to save the page"); + saveSucceeded = false; } else { + saveSucceeded = true; //mark the page from wiki structure as published bool markedDone = false; foreach (Space sp in addin.wiki.spaces) @@ -398,6 +402,8 @@ } RestoreGrammarAndSpellingSettings(); + + return saveSucceeded; } ///