Re: [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]

 



> 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,

Why do we want to pop up a dialog instead of just have the button be a
no-op if no device is chosen?  In general, we don't really follow one
way or the other in anaconda with any consistency.  It's probably time
for us to decide and follow that choice all the way through.

- Chris

_______________________________________________
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