Changeset 98


Ignore:
Timestamp:
Aug 27, 2016, 8:58:18 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Wrong access to main thread from export jobs causing exception.
  • Fixed: Build under linux.
Location:
trunk/Forms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormExport.pas

    r97 r98  
    2424  private
    2525    ItemCount: Integer;
     26    Content: string;
    2627    procedure JobExportCSV(Job: TJob);
    2728    procedure JobExportMediaWiki(Job: TJob);
     
    6667  I: Integer;
    6768  J: Integer;
    68   Content: string;
    6969begin
    7070  Job.Progress.Max := Core.AcronymDb.Acronyms.Count;
     
    8181    if Job.Terminate then Break;
    8282  end;
    83   Memo1.Lines.Text := Content;
    8483end;
    8584
     
    8887  I: Integer;
    8988  J: Integer;
    90   Content: string;
    9189begin
    9290  Job.Progress.Max := Core.AcronymDb.Acronyms.Count;
     
    104102    if Job.Terminate then Break;
    105103  end;
    106   Memo1.Lines.Text := Content;
    107104end;
    108105
     
    112109  J: Integer;
    113110  Line: string;
    114   Content: string;
    115111begin
    116112  Job.Progress.Max := Core.AcronymDb.Acronyms.Count;
     
    131127  end;
    132128  Content := Content + '|}' + LineEnding;
    133   Memo1.Lines.Text := Content;
    134129end;
    135130
     
    143138    Core.JobProgressView1.AddJob(SExporting, JobExportMediaWikiTable);
    144139  Core.JobProgressView1.Start;
     140  Memo1.Lines.Text := Content;
    145141  ShowMessage(Format(SExportedAcronyms, [ItemCount]));
    146142end;
  • trunk/Forms/UFormImport.pas

    r96 r98  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   UAcronym, Types;
     9  UAcronym;
    1010
    1111type
  • trunk/Forms/UFormMain.pas

    r97 r98  
    610610  // If installed in Linux system then use installation directory for po files
    611611  if Application.ExeName = '/usr/bin/' + ExtractFileNameOnly(Application.ExeName) then
    612     CoolTranslator1.POFilesFolder := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/languages';
     612    Core.CoolTranslator1.POFilesFolder := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/languages';
    613613  {$ENDIF}
    614614
Note: See TracChangeset for help on using the changeset viewer.