]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/tools/XRCed/xrced.py
added missing button state
[wxWidgets.git] / wxPython / wx / tools / XRCed / xrced.py
index f4ad0cfcfa1708cbe66b36ddec32ea791b7b4e81..e47b62f287be10d9ebc04a6e03964e9268d3719b 100644 (file)
@@ -373,6 +373,8 @@ class Frame(wx.Frame):
                                wx.SAVE | wx.OVERWRITE_PROMPT | wx.CHANGE_DIR)
             if dlg.ShowModal() == wx.ID_OK:
                 path = dlg.GetPath()
+                if isinstance(path, unicode):
+                    path = path.encode(sys.getfilesystemencoding())
                 dlg.Destroy()
             else:
                 dlg.Destroy()