summaryrefslogtreecommitdiffstats
path: root/iw/xconfig_gui.py
diff options
context:
space:
mode:
authorbfox <bfox>2000-12-01 07:31:36 +0000
committerbfox <bfox>2000-12-01 07:31:36 +0000
commit702ed29e22ea38753abf19065f7996ff540aaf1b (patch)
tree02230bc83d99bde5b1d6282d7cb2dbc878c730c1 /iw/xconfig_gui.py
parent59359d146c29cadfe87b9071c39841f4122509fe (diff)
downloadanaconda-702ed29e22ea38753abf19065f7996ff540aaf1b.tar.gz
anaconda-702ed29e22ea38753abf19065f7996ff540aaf1b.tar.xz
anaconda-702ed29e22ea38753abf19065f7996ff540aaf1b.zip
Fixed bug #21525. Some cards with aliases weren't correctly selected when going past the screen and then coming back.
Diffstat (limited to 'iw/xconfig_gui.py')
-rw-r--r--iw/xconfig_gui.py45
1 files changed, 38 insertions, 7 deletions
diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py
index 49aa21e33..8f0e13d46 100644
--- a/iw/xconfig_gui.py
+++ b/iw/xconfig_gui.py
@@ -373,7 +373,7 @@ class XCustomWindow (InstallWindow):
return box
def getPrev (self):
- returnxXConfigWindow
+ return XConfigWindow
class MonitorWindow (InstallWindow):
def __init__ (self, ics):
@@ -608,7 +608,6 @@ class XConfigWindow (InstallWindow):
self.ctree.select(self.selected_node)
parent_node, cardname = self.ctree.node_get_row_data(self.selected_node)
self.ctree.expand(parent_node)
-# print self.selected_node
self.ctree.node_moveto(self.selected_node, 0, 0.5, 0)
self.ctree.thaw()
@@ -620,7 +619,7 @@ class XConfigWindow (InstallWindow):
self.selected_node = node
self.ctree.select(node)
parent_node, cardname = self.ctree.node_get_row_data(node)
- self.ctree.expand(node)
+ self.ctree.expand(parent_node)
self.ctree.node_moveto(node, 0, 0.5, 0)
self.ctree.thaw()
@@ -630,6 +629,7 @@ class XConfigWindow (InstallWindow):
parent, cardname = ctree.node_get_row_data (node)
if cardname:
card = self.cards[cardname]
+ self.todo.videoCardStateName = card["NAME"]
depth = 0
while depth < 16 and card.has_key ("SEE"):
card = self.cards[card["SEE"]]
@@ -1125,21 +1125,52 @@ class XConfigWindow (InstallWindow):
self.ctree.node_set_row_data(node, (other, card))
if self.todo.videoCardOriginalName != "":
+# print "videoCardOriginalName", self.todo.videoCardOriginalName
if card == self.todo.videoCardOriginalName:
self.todo.videoCardOriginalNode = node
+ #--This is some pretty confusing logic to handle all the state information.
+
+
if self.todo.x.vidCards:
- if card == self.todo.x.vidCards[self.todo.x.primary]["NAME"]:
-# print card
+# print card, "---", self.todo.x.vidCards[self.todo.x.primary]["NAME"], "---", self.todo.videoCardStateName
+# if card == self.todo.x.vidCards[self.todo.x.primary]["NAME"]:
+
+ if self.todo.videoCardStateName == "":
+ if card == self.todo.x.vidCards[self.todo.x.primary]["NAME"]:
+ self.todo.videoCardStateName = card
+
+# print "Card", card
+ #--If we haven't been to this screen before, initialize the state to the original value
+ if self.todo.videoCardOriginalName == "":
+ self.todo.videoCardOriginalName = card
+ self.todo.videoCardOriginalNode = node
+
+ self.current_node = node
+ self.selected_node = node
+ elif card == self.todo.videoCardStateName:
+ self.current_node = node
+ self.selected_node = node
+
+ elif card == self.todo.videoCardStateName:
+# print "Inside elif card"
+
+# print "Card", card
#--If we haven't been to this screen before, initialize the state to the original value
if self.todo.videoCardOriginalName == "":
self.todo.videoCardOriginalName = card
self.todo.videoCardOriginalNode = node
+
+ self.current_node = node
+ self.selected_node = node
+
+ elif card == self.todo.videoCardStateName:
+ self.current_node = node
+ self.selected_node = node
- self.current_node = node
- self.selected_node = node
elif card == self.todo.videoCardOriginalName:
+# print "Inside else"
card = self.todo.videoCardOriginalName
self.todo.videoCardOriginalNode = node
# self.current_node = node