Ignore:
Timestamp:
Mar 6, 2016, 12:10:38 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Built with FPC 3.0.0. Fixed various compiler messages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r70 r72  
    77uses
    88  Classes, SysUtils, FileUtil, SynEdit, Forms, Controls, Graphics, Dialogs,
    9   Menus, ActnList, ComCtrls, ExtCtrls, UTarget, Registry, URegistry, Process;
     9  Menus, ActnList, ComCtrls, ExtCtrls, UTarget, Registry, URegistry, Process,
     10  LazFileUtils;
    1011
    1112type
     
    171172
    172173resourcestring
    173   SProgramExited = 'Program exited';
    174174  SProgramStarted = 'Program started';
    175175  SProgramStopped = 'Program stopped';
     
    245245  if Core.Project.Openned then
    246246    raise Exception.Create(SCloseProjectFirst);
    247   FormSourceCode.MemoSource.Lines.LoadFromFile(UTF8Decode(FileName));
     247  FormSourceCode.MemoSource.Lines.LoadFromFile(FileName);
    248248  Core.LastOpenedList.AddItem(FileName);
    249249  Core.Project.FileName := FileName;
     
    609609  SaveDialog1.FileName := Core.Project.FileName;
    610610  if SaveDialog1.Execute then begin
    611     FormSourceCode.MemoSource.Lines.SaveToFile(UTF8Decode(SaveDialog1.FileName));
     611    FormSourceCode.MemoSource.Lines.SaveToFile(SaveDialog1.FileName);
    612612    Core.Project.FileName := SaveDialog1.FileName;
    613613    Core.LastOpenedList.AddItem(SaveDialog1.FileName);
     
    620620begin
    621621  if Core.Project.Modified and FileExistsUTF8(Core.Project.FileName) then begin
    622     FormSourceCode.MemoSource.Lines.SaveToFile(UTF8Decode(Core.Project.FileName));
     622    FormSourceCode.MemoSource.Lines.SaveToFile(Core.Project.FileName);
    623623    Core.Project.Modified := False;
    624624    UpdateInterface;
Note: See TracChangeset for help on using the changeset viewer.