summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-17 21:51:50 +0000
committerMike Fulbright <msf@redhat.com>2001-07-17 21:51:50 +0000
commit26e8fc0f148c85c60efcdb023f08914ff34036f7 (patch)
tree701b29ceafc50a78b7f626dec2562de1cf09eb92 /iw
parentab26a68313420e6416132922950edec720b4fc60 (diff)
downloadanaconda-26e8fc0f148c85c60efcdb023f08914ff34036f7.tar.gz
anaconda-26e8fc0f148c85c60efcdb023f08914ff34036f7.tar.xz
anaconda-26e8fc0f148c85c60efcdb023f08914ff34036f7.zip
handle unprobed card better
Diffstat (limited to 'iw')
-rw-r--r--iw/xconfig_gui.py27
1 files changed, 24 insertions, 3 deletions
diff --git a/iw/xconfig_gui.py b/iw/xconfig_gui.py
index 068e6596b..aeace0653 100644
--- a/iw/xconfig_gui.py
+++ b/iw/xconfig_gui.py
@@ -695,6 +695,7 @@ class XConfigWindow (InstallWindow):
vidram = self.videocard.possible_ram_sizes()[index]
self.videocard.primaryCard().setVideoRam(str(vidram))
+ self.xconfig.setVideoCard(self.videocard.primaryCard())
self.xconfig.filterModesByMemory ()
return None
@@ -703,6 +704,10 @@ class XConfigWindow (InstallWindow):
self.configbox.set_sensitive (not widget.get_active ())
def movetree (self, ctree, area, selected_node):
+ if self.selected_node == None:
+ print "bad selected_node = None!!"
+ return
+
self.ctree.freeze()
node = self.selected_node
(parent_node, cardname) = self.ctree.node_get_row_data(node)
@@ -777,7 +782,7 @@ class XConfigWindow (InstallWindow):
count = count + 1
# XConfigWindow tag="xconf"
- def getScreen (self, dispatch, xconfig, videocard):
+ def getScreen (self, dispatch, xconfig, videocard, intf):
def makeFormattedLabel(text):
label = GtkLabel (text)
label.set_justify (JUSTIFY_LEFT)
@@ -855,8 +860,24 @@ class XConfigWindow (InstallWindow):
cards.sort()
other_cards = copy.copy(cards)
- current_cardsel = self.videocard.primaryCard().getCardData(dontResolve=1)["NAME"]
- probed_card = self.videocard.primaryCard(useProbed=1).getCardData()["NAME"]
+ current_cardsel = None
+ probed_card = None
+ self.current_node = None
+ self.orig_node = None
+ self.selected_node = None
+ if self.videocard.primaryCard():
+ carddata = self.videocard.primaryCard().getCardData(dontResolve=1)
+ if carddata:
+ current_cardsel = carddata["NAME"]
+ else:
+ current_cardsel = None
+
+ carddata = self.videocard.primaryCard(useProbed=1).getCardData()
+ if carddata:
+ probed_card = carddata["NAME"]
+ else:
+ probed_card = None
+
for card in cards:
temp = string.lower(card)