summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-19 20:03:43 +0000
committerMike Fulbright <msf@redhat.com>2001-07-19 20:03:43 +0000
commit5552c7ae5c2589d3d8b9aec40c4d81bcfefdb114 (patch)
treeb8f066c2e0355875bcd8228f6f46f5b258984467 /gui.py
parent0e82660641f9f1e38c27fa102eae106804c90737 (diff)
downloadanaconda-5552c7ae5c2589d3d8b9aec40c4d81bcfefdb114.tar.gz
anaconda-5552c7ae5c2589d3d8b9aec40c4d81bcfefdb114.tar.xz
anaconda-5552c7ae5c2589d3d8b9aec40c4d81bcfefdb114.zip
fix behavior so we warn user if they are using a preexisting as a system directory and NOT formatting, as well as if they are formatting a preexsting, since it will destroy the data
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui.py b/gui.py
index 72cf941af..060acdfb7 100755
--- a/gui.py
+++ b/gui.py
@@ -241,7 +241,7 @@ class MessageWindow:
def getrc (self):
return self.rc
- def __init__ (self, title, text, type="ok"):
+ def __init__ (self, title, text, type="ok", default=None):
if flags.autostep:
print title, text, type
self.rc = 1
@@ -299,8 +299,8 @@ class InstallInterface:
self.ppw.setSizes (total, totalSize)
return self.ppw
- def messageWindow(self, title, text, type="ok"):
- rc = MessageWindow (title, text, type).getrc()
+ def messageWindow(self, title, text, type="ok", default = None):
+ rc = MessageWindow (title, text, type, default).getrc()
return rc
def exceptionWindow(self, title, text):