summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-08-15 05:53:46 +0000
committerMike Fulbright <msf@redhat.com>2002-08-15 05:53:46 +0000
commit7746bee71a0ccb17069feafb5908700602c9631b (patch)
tree0880080acb7731f9223f784d67e115a328213d8c
parent2e4c404f9637a50c2e0409c7146231813fbd17ea (diff)
downloadanaconda-7746bee71a0ccb17069feafb5908700602c9631b.tar.gz
anaconda-7746bee71a0ccb17069feafb5908700602c9631b.tar.xz
anaconda-7746bee71a0ccb17069feafb5908700602c9631b.zip
fix for bug #68625
-rw-r--r--iw/partition_gui.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 97443f854..1df0cbc54 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -456,7 +456,19 @@ class DiskTreeModel(gtk.TreeStore):
while not iter and parent:
parent = self.iter_next(parent)
iter = parent
- if len(parentstack) > 0:
+
+ # if we found a new iter, set parent to last
+ # thing on parentstack w/o popping because we want
+ # last item in parentstack to match the parent
+ # of the current iter
+ #
+ # otherwise pop off next parent and resume search there
+ #
+ # otherwise we're in trouble
+ #
+ if iter:
+ parent = parentstack[-1]
+ elif len(parentstack) > 0:
parent = parentstack.pop()
else:
# we've fallen off the end of the model, and we have