summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2003-01-08 23:05:20 +0000
committerMatt Wilson <msw@redhat.com>2003-01-08 23:05:20 +0000
commitd7f3ece36c40eb20b4a03dbbf8595b15ba6e9af7 (patch)
tree5001ed3cb0b7d7441025980386103fc6db051212 /gui.py
parentf902df7c58e36ab00d37b0e6e497f31bd9b9cd25 (diff)
downloadanaconda-d7f3ece36c40eb20b4a03dbbf8595b15ba6e9af7.tar.gz
anaconda-d7f3ece36c40eb20b4a03dbbf8595b15ba6e9af7.tar.xz
anaconda-d7f3ece36c40eb20b4a03dbbf8595b15ba6e9af7.zip
save to floppy only if you have a floppy drive. Needed as part of s390 merge, but applies to many platforms and notebooks these days
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/gui.py b/gui.py
index 4a5968802..6f1f860ff 100755
--- a/gui.py
+++ b/gui.py
@@ -441,9 +441,12 @@ class ProgressWindow:
class ExceptionWindow:
def __init__ (self, text):
+ floppyDevices = len(isys.floppyDriveDict())
+
win = gtk.Dialog("Exception Occured", mainWindow, gtk.DIALOG_MODAL)
win.add_button("_Debug", 0)
- win.add_button("_Save to floppy", 1)
+ if floppyDevices > 0 or DEBUG:
+ win.add_button("_Save to floppy", 1)
win.add_button('gtk-ok', 2)
buffer = gtk.TextBuffer(None)
buffer.set_text(text)
@@ -460,12 +463,11 @@ class ExceptionWindow:
## if file:
## hbox.pack_start (GnomePixmap (file), gtk.FALSE)
- info = WrappingLabel(_("An unhandled exception has occurred. This "
- "is most likely a bug. Please copy the "
- "full text of this exception or save the crash "
- "dump to a floppy then file a detailed bug "
- "report against anaconda at "
- "http://bugzilla.redhat.com/bugzilla/"))
+ if floppyDevices > 0:
+ info = WrappingLabel(exceptionText)
+ else:
+ info = WrappingLabel(exceptionTextNoFloppy)
+
info.set_size_request (400, -1)
hbox.pack_start (sw, gtk.TRUE)