# HG changeset patch # User Laurent Bessard # Date 1361967192 -3600 # Node ID 206a90c0d3434dd503b6bb3d8e3757d47e7e3577 # Parent 90b738e4ede56e7cb0aac996ce9a17fa6e4dfd86 Fixed bug when replacing already imported EDS file in NetworkEditor diff -r 90b738e4ede5 -r 206a90c0d343 objdictgen/commondialogs.py --- a/objdictgen/commondialogs.py Thu Dec 06 16:07:46 2012 +0100 +++ b/objdictgen/commondialogs.py Wed Feb 27 13:13:12 2013 +0100 @@ -1252,7 +1252,7 @@ if result is not None and question: dialog = wx.MessageDialog(self, _("%s\nWould you like to replace it ?")%result, _("Question"), wx.YES_NO|wx.ICON_QUESTION) if dialog.ShowModal() == wx.ID_YES: - dialog, question = self.NodeList.ImportEDSFile(filepath, True) + result, question = self.NodeList.ImportEDSFile(filepath, True) dialog.Destroy() if result is not None and not question: dialog = wx.MessageDialog(self, result, _("Error"), wx.OK|wx.ICON_ERROR)