diff options
author | Erik Troan <ewt@redhat.com> | 2002-01-25 14:29:55 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2002-01-25 14:29:55 +0000 |
commit | 737b723fb30875336758e89b2b46b1503a3e6e4a (patch) | |
tree | 981e13ff1804c9cfea513f96230cf3abbfcc76a9 | |
parent | 7533995c5f30b247b3fa0bd832aaa0281b4722c8 (diff) | |
download | anaconda-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.py | 4 | ||||
-rw-r--r-- | textw/mouse_text.py | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -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() |