summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iw/xconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/iw/xconfig.py b/iw/xconfig.py
index b981d5cdc..8872fbbe8 100644
--- a/iw/xconfig.py
+++ b/iw/xconfig.py
@@ -392,7 +392,8 @@ class XConfigWindow (InstallWindow):
for card in cards:
row = self.cardList.append ((card,))
self.cardList.set_row_data (row, card)
- if card == self.todo.x.vidCards[self.todo.x.primary]["NAME"]:
+ if (self.todo.x.vidCards
+ and card == self.todo.x.vidCards[self.todo.x.primary]["NAME"]):
select = row
self.cardList.connect ("draw", self.moveto, select)
sw = GtkScrolledWindow ()