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

[PATCH] do nothing when 'Esc' is hit in partition dialog (resolves #758106)



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

diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 6e7b6cf..e70fe58 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -106,8 +106,8 @@ class PartitionEditor:
         while 1:
             rc = self.dialog.run()
 	    
-            # user hit cancel, do nothing
-            if rc == 2:
+            # user hit cancel or 'Esc', do nothing
+            if rc in [2, gtk.RESPONSE_DELETE_EVENT]:
                 self.destroy()
                 return None
 
-- 
1.7.4.4


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