Skip to content
Browse files

Expand on double click fix.

  • Loading branch information...
1 parent 3ca6ee4 commit 3f1108bea280b1c5505c4673288628bd5edd95f8 @alpinechough alpinechough committed with vargaz
Showing with 5 additions and 4 deletions.
  1. +5 −4 gui/gtk/CoverageView.cs
View
9 gui/gtk/CoverageView.cs
@@ -271,11 +271,12 @@ void OnDoubleClick ()
SourceWindow sourceView = ShowSourceFor (method.ParentClass);
sourceView.CenterOnMethod (method);
} else {
- if (tree.ExpandRow (model.GetPath (iter), true)) {
- // LAME: This seems to collapse the entire tree...
- tree.CollapseRow (model.GetPath (iter));
+ TreePath treePath = model.GetPath (iter);
+
+ if (tree.GetRowExpanded (treePath)) {
+ tree.CollapseRow (treePath);
} else {
- tree.ExpandRow (model.GetPath (iter), false);
+ tree.ExpandRow (treePath, false);
}
}
}

0 comments on commit 3f1108b

Please sign in to comment.
Something went wrong with that request. Please try again.