objdictgen/commondialogs.py
changeset 505 88956169c8b5
parent 500 13fcb9328a02
child 543 ea6cc9b95838
--- a/objdictgen/commondialogs.py	Fri Jul 25 10:57:20 2008 +0200
+++ b/objdictgen/commondialogs.py	Fri Jul 25 16:36:23 2008 +0200
@@ -1249,8 +1249,9 @@
             if os.path.isfile(filepath):
                 result = self.NodeList.ImportEDSFile(filepath)
                 if result:
-                    message = wx.MessageDialog(self, result, "Error", wx.OK|wx.ICON_ERROR)
-                    message.ShowModal()
+                    message = wx.MessageDialog(self, "%s\nWould you like to replace it ?"%result, "Question", wx.YES_NO|wx.ICON_QUESTION)
+                    if message.ShowModal() == wx.ID_YES:
+                        self.NodeList.ImportEDSFile(filepath, True)
                     message.Destroy()
         dialog.Destroy()
         self.RefreshEDSFile()