Changeset 72 for trunk/Forms/UFormMain.pas
- Timestamp:
- Mar 6, 2016, 12:10:38 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r70 r72 7 7 uses 8 8 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; 10 11 11 12 type … … 171 172 172 173 resourcestring 173 SProgramExited = 'Program exited';174 174 SProgramStarted = 'Program started'; 175 175 SProgramStopped = 'Program stopped'; … … 245 245 if Core.Project.Openned then 246 246 raise Exception.Create(SCloseProjectFirst); 247 FormSourceCode.MemoSource.Lines.LoadFromFile( UTF8Decode(FileName));247 FormSourceCode.MemoSource.Lines.LoadFromFile(FileName); 248 248 Core.LastOpenedList.AddItem(FileName); 249 249 Core.Project.FileName := FileName; … … 609 609 SaveDialog1.FileName := Core.Project.FileName; 610 610 if SaveDialog1.Execute then begin 611 FormSourceCode.MemoSource.Lines.SaveToFile( UTF8Decode(SaveDialog1.FileName));611 FormSourceCode.MemoSource.Lines.SaveToFile(SaveDialog1.FileName); 612 612 Core.Project.FileName := SaveDialog1.FileName; 613 613 Core.LastOpenedList.AddItem(SaveDialog1.FileName); … … 620 620 begin 621 621 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); 623 623 Core.Project.Modified := False; 624 624 UpdateInterface;
Note:
See TracChangeset
for help on using the changeset viewer.