Fixed bug when replacing already imported EDS file in NetworkEditor
authorLaurent Bessard
Wed, 27 Feb 2013 13:13:12 +0100
changeset 766 206a90c0d343
parent 765 90b738e4ede5
child 767 5313a3d85752
Fixed bug when replacing already imported EDS file in NetworkEditor
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)