[f23-branch 1/1] Warn user before using Delete all (#1183880)

jkonecny12 installerbot-noreply at redhat.com
Thu Oct 15 09:43:05 UTC 2015


From: Jiri Konecny <jkonecny at redhat.com>

Warn user that "Delete all" checkbox removes even shared partitions.
Thank you for this patch David Lehman.

Resolves: rhbz#1183880
---
 pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
index 8f3b6d6..323a827 100644
--- a/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
+++ b/pyanaconda/ui/gui/spokes/lib/custom_storage_helpers.py
@@ -383,9 +383,13 @@ def refresh(self, mountpoint, device, rootName, snapshots=False):
 
         if rootName and "_" in rootName:
             rootName = rootName.replace("_", "__")
+        delete_all_text = (C_("GUI|Custom Partitioning|Confirm Delete Dialog",
+                               "Delete _all other file systems in the %s root as well.") +
+                           "\n" +
+                           C_("GUI|Custom Partitioning|Confirm Delete Dialog",
+                               "(Including those used by other installed operating systems.)"))
         self._removeAll.set_label(
-                C_("GUI|Custom Partitioning|Confirm Delete Dialog",
-                    "Delete _all other file systems in the %s root as well.")
+                delete_all_text
                 % rootName)
         self._removeAll.set_sensitive(rootName is not None)
 


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/f480b5515871668410d34a7d1a71c3cd1fc896bb


More information about the anaconda-patches mailing list