change the function SaveFileAs(editor) to read

    if fileDialog:ShowModal() == wx.wxID_OK then
        local filePath = fileDialog:GetPath()
        if not wx.wxFileExists(filePath) or
            wx.wxYES == wx.wxMessageBox("File exist replace '"..filePath, "Save 
as", wx.wxYES_NO, frame) then
            if SaveFile(editor, filePath) then
                SetupKeywords(editor, IsLuaFile(filePath))
                saved = true
            end
        end
    end

This will stop the editor to silently override existing file.

Andre


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to