Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/windoc
diff options
context:
space:
mode:
authorJeremie Laval <jeremie.laval@gmail.com>2012-05-03 17:37:25 +0400
committerJeremie Laval <jeremie.laval@gmail.com>2012-05-03 17:37:25 +0400
commit5a87f3762955838667a82b088b4dc69255c4cd06 (patch)
tree7da3caa2d90375118e7562cd0aa18450eee2fc19 /windoc
parent323dcafaa2253fba3f36088ec3fdad1fa104451d (diff)
[windoc] More root loading fixup
Diffstat (limited to 'windoc')
-rw-r--r--windoc/WinDoc/MainWindow.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/windoc/WinDoc/MainWindow.cs b/windoc/WinDoc/MainWindow.cs
index 2ce9653b..636bf516 100644
--- a/windoc/WinDoc/MainWindow.cs
+++ b/windoc/WinDoc/MainWindow.cs
@@ -247,6 +247,8 @@ namespace WinDoc
TreeNode treeNode;
if (!nodeToTreeNodeMap.TryGetValue (node, out treeNode)) {
+ if (node.Parent == null)
+ return false;
ShowNodeInTree (node.Parent);
if (!nodeToTreeNodeMap.TryGetValue (node.Parent, out treeNode))
return false;