Fix potential crash on ansi + unicode concatenation

This commit is contained in:
DarkPhoenix
2014-03-12 00:24:29 +04:00
parent f90983b541
commit 4fa585046f

View File

@@ -58,7 +58,7 @@ class PFHTMLExportPref ( PreferenceView):
def setPathLinkCtrlValues(self, path):
self.PathLinkCtrl.SetLabel(self.HTMLExportSettings.getPath())
self.PathLinkCtrl.SetURL('file:///' + self.HTMLExportSettings.getPath())
self.PathLinkCtrl.SetURL(u'file:///{}'.format(self.HTMLExportSettings.getPath()))
self.PathLinkCtrl.SetSize(wx.DefaultSize);
self.PathLinkCtrl.Refresh()