[PATCH 10/30] Pop up a warning window if no device was chosen.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* iw/partition_gui.py (deleteCB): Use self.intf to pop up a warning
window.
---
 iw/partition_gui.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index ee69f85..8c0f714 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -975,6 +975,9 @@ class PartitionWindow(InstallWindow):
         """
         device = self.tree.getCurrentDevice()
         if not device:
+            self.intf.messageWindow(_("Unable To Delete"),
+                               _("You must select a device to delete"),
+                               custom_icon="error")
             return
         if device.format.type == "disklabel":
             if doClearPartitionedDevice(self.intf,
-- 
1.6.4.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux