From 02a15d7e0252ae5445d8d9230b9f9810cbf93224 Mon Sep 17 00:00:00 2001 From: Shad L. Lords Date: Mon, 26 Oct 2009 18:23:05 -0600 Subject: [PATCH] Add final warning before installing --- textw/installpath_text.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/textw/installpath_text.py b/textw/installpath_text.py index 3f1c464..58a4f71 100644 --- a/textw/installpath_text.py +++ b/textw/installpath_text.py @@ -45,12 +45,12 @@ class InstallPathWindow: if orig != None: default = orig - (button, choice) = ListboxChoiceWindow(screen, _("Installation Type"), - _("What type of system would you like to install?"), - choices, [TEXT_OK_BUTTON, TEXT_BACK_BUTTON], - width = 40, default = default, help = "installpath") + choice = default + rc = intf.messageWindow(_("Warning"), + _("All disks will be reformatted and any data will be lost. Proceed?"), + type = "yesno", default = "no") - if button == TEXT_BACK_CHECK: + if rc == 0: return INSTALL_BACK if (choice != orig): -- 1.5.5.6