Fix Character Editor Dialog for osx

This commit is contained in:
blitzmann
2016-01-25 22:47:27 -05:00
parent 9cb99a1170
commit 9fc31d6a55
2 changed files with 3 additions and 6 deletions

View File

@@ -127,7 +127,7 @@ class CharacterEditor(wx.Dialog):
self.btnSaveChar.Bind(wx.EVT_BUTTON, self.saveChar)
self.btnSaveAs.Bind(wx.EVT_BUTTON, self.saveCharAs)
self.btnRevert.Bind(wx.EVT_BUTTON, self.revertChar)
self.btnOK.Bind(wx.EVT_BUTTON, self.editingFinished)
self.btnOK.Bind(wx.EVT_BUTTON, self.OnClose)
mainSizer.Add(bSizerButtons, 0, wx.EXPAND, 5)
@@ -167,10 +167,6 @@ class CharacterEditor(wx.Dialog):
self.btnRestrict()
def editingFinished(self, event):
wx.PostEvent(self.mainFrame, GE.CharListUpdated())
self.Close()
def registerEvents(self):
self.Bind(wx.EVT_CLOSE, self.OnClose)
self.Bind(GE.CHAR_LIST_UPDATED, self.refreshCharacterList)
@@ -319,7 +315,7 @@ class CharacterEditor(wx.Dialog):
sFit.clearFit(fitID)
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
self.Destroy()
event.Skip()
class SkillTreeView (wx.Panel):
def __init__(self, parent):

View File

@@ -351,6 +351,7 @@ class MainFrame(wx.Frame):
def showCharacterEditor(self, event):
dlg=CharacterEditor(self)
dlg.ShowModal()
dlg.Destroy()
def showAttrEditor(self, event):
dlg=AttributeEditor(self)