summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2002-01-25 14:29:55 +0000
committerErik Troan <ewt@redhat.com>2002-01-25 14:29:55 +0000
commit737b723fb30875336758e89b2b46b1503a3e6e4a (patch)
tree981e13ff1804c9cfea513f96230cf3abbfcc76a9
parent7533995c5f30b247b3fa0bd832aaa0281b4722c8 (diff)
downloadanaconda-737b723fb30875336758e89b2b46b1503a3e6e4a.tar.gz
anaconda-737b723fb30875336758e89b2b46b1503a3e6e4a.tar.xz
anaconda-737b723fb30875336758e89b2b46b1503a3e6e4a.zip
doesn't crash when no mouse is detected (probably still isn't quite right
however)
-rw-r--r--mouse.py4
-rw-r--r--textw/mouse_text.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/mouse.py b/mouse.py
index ebe39caab..0e3f68fee 100644
--- a/mouse.py
+++ b/mouse.py
@@ -87,8 +87,8 @@ class Mouse (SimpleConfigFile):
("MMSeries", "MMSeries", "ttyS", 1, "mmseries"),
N_("MM - HitTablet (serial)"):
("MMHitTab", "MMHittab", "ttyS", 1, "mmhittab"),
-# "None - None" :
-# ("none", "none", None, 0, "none"),
+ "None - None" :
+ ("none", "none", None, 0, "none"),
N_("Sun - Mouse"): ("sun", "sun", "sunmouse", 0, "sun"),
}
diff --git a/textw/mouse_text.py b/textw/mouse_text.py
index 97280324b..7467596da 100644
--- a/textw/mouse_text.py
+++ b/textw/mouse_text.py
@@ -25,7 +25,7 @@ class MouseDeviceWindow:
i = 0
default = 0
mousedev = mouse.getDevice()
- if (mousedev[0:4] != "ttyS"): return INSTALL_NOOP
+ if (not mousedev or mousedev[0:4] != "ttyS"): return INSTALL_NOOP
l = choices.keys()
l.sort()