<snip>
    editor:Connect(wx.wxEVT_SET_FOCUS,
            function (event)
                event:Skip()
                if in_evt_focus or exitingProgram then return end
                in_evt_focus = true
                IsFileAlteredOnDisk(editor)
                in_evt_focus = false
            end)

    if not name then name = "" end

    if notebook:AddPage(editor, name, true) then
        local id            = editor:GetId()
        local document      = {}
        document.editor     = editor
        document.index      = notebook:GetSelection()
</snip>

Hope this is helpful

On 2/21/07, John Labenski <[EMAIL PROTECTED]> wrote:
> On 2/21/07, Steve <[EMAIL PROTECTED]> wrote:
> > Hello all,
> > I ran into a problem when opening multiple documents with the editor.wx.lua
> > It would simply fail silently
> >
> > Turns out about line 556 it was expecting name to not be nil
> > So I added this just above line 556 and it works just fine now!
> >
> > if not name then name = "" end
>
>
> Could you please show a few lines around your line 556, the current
> CVS version of editor.wx.lua doesn't match what you have.
>
> Thanks,
>     John Labenski
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> wxlua-users mailing list
> wxlua-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxlua-users
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to