[PATCH 2/2] do not create new iSCSI target when 'Esc' is hit (#768082)

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

 



---
 iw/autopart_type.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/iw/autopart_type.py b/iw/autopart_type.py
index 151ebe7..5eacdb8 100644
--- a/iw/autopart_type.py
+++ b/iw/autopart_type.py
@@ -135,7 +135,7 @@ class PartitionTypeWindow(InstallWindow):
 
         while 1:
             rc = dialog.run()
-            if rc == gtk.RESPONSE_CANCEL:
+            if rc in [gtk.RESPONSE_CANCEL, gtk.RESPONSE_DELETE_EVENT]:
                 break
 
             initiator = dxml.get_widget("iscsiInitiatorEntry").get_text()
@@ -253,7 +253,7 @@ class PartitionTypeWindow(InstallWindow):
             rc = self.addZfcpDrive()
         dialog.destroy()
 
-        if rc != gtk.RESPONSE_CANCEL:
+        if rc not in [gtk.RESPONSE_CANCEL, gtk.RESPONSE_DELETE_EVENT]:
             w = self.intf.waitWindow(_("Rescanning disks"),
                                      _("Rescanning disks"))
             partitioning.partitionObjectsInitialize(self.anaconda)
-- 
1.7.4.4

_______________________________________________
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