mailr14688 - /1.3/gui/pipe_editor.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 19, 2011 - 11:29:
Author: bugman
Date: Mon Sep 19 11:29:12 2011
New Revision: 14688

URL: http://svn.gna.org/viewcvs/relax?rev=14688&view=rev
Log:
The parent of the Question dialog in the pipe editor window is set so the 
window doesn't disappear.

Without this, the main GUI window comes to the front after the dialog is 
shown.


Modified:
    1.3/gui/pipe_editor.py

Modified: 1.3/gui/pipe_editor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/gui/pipe_editor.py?rev=14688&r1=14687&r2=14688&view=diff
==============================================================================
--- 1.3/gui/pipe_editor.py (original)
+++ 1.3/gui/pipe_editor.py Mon Sep 19 11:29:12 2011
@@ -369,7 +369,7 @@
 
         # Ask if this should be done.
         msg = "Are you sure you would like to delete the '%s' data pipe?  
This operation cannot be undone." % self.selected_pipe
-        if status.show_gui and Question(msg, default=False).ShowModal() == 
wx.ID_NO:
+        if status.show_gui and Question(msg, parent=self, 
default=False).ShowModal() == wx.ID_NO:
             return
 
         # Delete the data pipe.




Related Messages


Powered by MHonArc, Updated Mon Sep 19 12:00:02 2011