Factorize
  • Overview
  • Repository
  • Tickets
  • Statistics
  • Projects

Repository

Avoid folding the root node

Parent commits : a3939a0f8952c81407156fe2e295cce2a9517404,
Children commits : c40b9a210c70a78477889715363548807bf00560,

By lds on 2008-12-14 09:08:40
Avoid folding the root node


git-svn-id: http://shan/svn/repos/factorize@11 51b56bfc-b269-4856-8701-af1c38ee6d62

Browse content
Difference with parent commit a3939a0f8952c81407156fe2e295cce2a9517404
Files modified:
gui.py
--- 
+++ 
@@ -271,7 +271,7 @@
 				s.tree.highlighted_node.folded = False
 
 		elif c == curses.KEY_LEFT:
-			if s.tree.highlighted_node:
+			if s.tree.highlighted_node and s.tree.highlighted_node != s.tree.root:
 				s.tree.highlighted_node.folded = True
 		
 		elif c == ord('q'):

Generated with KisssPM