[monkeydoc] Null out helpSource if the hint was wrong.
authorJérémie Laval <jeremie.laval@gmail.com>
Tue, 18 Dec 2012 12:46:23 +0000 (13:46 +0100)
committerJérémie Laval <jeremie.laval@gmail.com>
Tue, 18 Dec 2012 12:46:23 +0000 (13:46 +0100)
mcs/tools/monkeydoc/Monkeydoc/RootTree.cs

index d47418305c2041f2741b754714d2b83405f61697..c653eeb61d642dbde6f53117aec2f8ea74a95d39 100644 (file)
@@ -360,6 +360,7 @@ namespace MonkeyDoc
 
                        HelpSource helpSource = hintSource;
                        if (helpSource == null || string.IsNullOrEmpty (internalId = helpSource.GetInternalIdForUrl (url, out node))) {
+                               helpSource = null;
                                foreach (var hs in helpSources.Where (h => h.CanHandleUrl (url))) {
                                        if (!string.IsNullOrEmpty (internalId = hs.GetInternalIdForUrl (url, out node))) {
                                                helpSource = hs;