Update of /cvsroot/wxlua/wxLua/samples
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv20252/wxLua/samples
Modified Files:
editor.wx.lua
Log Message:
Ignore wxNotebook sending changed events when it's destroyed (the frame is too)
Index: editor.wx.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/samples/editor.wx.lua,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** editor.wx.lua 22 Jan 2008 04:45:39 -0000 1.57
--- editor.wx.lua 1 Apr 2008 05:10:05 -0000 1.58
***************
*** 226,230 ****
notebook:Connect(wx.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
function (event)
! SetEditorSelection(event:GetSelection())
event:Skip() -- skip to let page change
end)
--- 226,232 ----
notebook:Connect(wx.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
function (event)
! if not exitingProgram then
! SetEditorSelection(event:GetSelection())
! end
event:Skip() -- skip to let page change
end)
|