Revert "Fix Character Editor Dialog for osx"

This reverts commit 9fc31d6a55.
This commit is contained in:
blitzmann
2016-01-31 10:51:45 -05:00
parent a73d9abc60
commit 55eed0d029
2 changed files with 6 additions and 3 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.OnClose)
self.btnOK.Bind(wx.EVT_BUTTON, self.editingFinished)
mainSizer.Add(bSizerButtons, 0, wx.EXPAND, 5)
@@ -167,6 +167,10 @@ 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)
@@ -315,7 +319,7 @@ class CharacterEditor(wx.Dialog):
sFit.clearFit(fitID)
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=fitID))
event.Skip()
self.Destroy()
class SkillTreeView (wx.Panel):
def __init__(self, parent):

View File

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