Re: [PATCH] Handle Esc keypress in (some more) dialogs as Cancel - (#520110).

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

 



Looks ok, but the hunks below change indentation!

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index f18a652..1b5a4fc 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -1279,7 +1279,7 @@ class PartitionWindow(InstallWindow):
  	dialog.show_all()
  	rc = dialog.run()
  	dialog.destroy()
-	if rc == 2:
+        if rc in [2, gtk.RESPONSE_DELETE_EVENT]:
  	    return

  	# see which option they choose
diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index bb457a5..54751d3 100644
--- a/iw/raid_dialog_gui.py
+++ b/iw/raid_dialog_gui.py
@@ -140,7 +140,7 @@ class RaidEditor:
  	    rc = self.dialog.run()

  	    # user hit cancel, do nothing
-	    if rc == 2:
+            if rc in [2, gtk.RESPONSE_DELETE_EVENT]:
  		self.destroy()
  		return []

@@ -696,7 +696,7 @@ class RaidCloneDialog:
  	    rc = self.dialog.run()

  	    # user hit cancel, do nothing
-	    if rc == 2:
+            if rc in [2, gtk.RESPONSE_DELETE_EVENT]:
  		self.destroy()
  		return None


_______________________________________________
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