Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tawindow.py
diff options
context:
space:
mode:
authorWalter Bender <walter@walter-laptop.(none)>2010-02-25 02:45:48 (GMT)
committer Walter Bender <walter@walter-laptop.(none)>2010-02-25 02:45:48 (GMT)
commiteff044092c104f321de3cb754f8fc5f4e7106cbc (patch)
tree7b0233b02b50e669aa8f5d61f53321fe7783dde1 /tawindow.py
parent1c22b04f056e65b929e48a606860123d49e8e010 (diff)
fixed restore of null block corner case
Diffstat (limited to 'tawindow.py')
-rw-r--r--tawindow.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tawindow.py b/tawindow.py
index a766f4c..46644dc 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1115,7 +1115,10 @@ class TurtleArtWindow():
for b in blocks:
if self._collapsed(b):
self._collapse_stack(self._find_sandwich_top(b))
- return blocks[0]
+ if len(blocks) > 0:
+ return blocks[0]
+ else:
+ return None
"""
Adjust the dock x,y positions