Ignore:
Timestamp:
Feb 6, 2017, 12:59:59 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Update filtered acronyms in main window if they were changed in acronyms and categories window.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormAcronyms.pas

    r146 r148  
    156156          TAcronymCategory(Meaning.Categories.Items[I]).AcronymMeanings.Add(Meaning);
    157157
     158      Core.AcronymDb.Update;
    158159      UpdateAcronymsList;
    159160      UpdateInterface;
     
    201202            if TAcronymCategory(Meaning.Categories.Items[I]).AcronymMeanings.IndexOf(Meaning) = -1 then
    202203              TAcronymCategory(Meaning.Categories.Items[I]).AcronymMeanings.Add(Meaning);
    203 
     204          Core.AcronymDb.Update;
    204205          UpdateAcronymsList;
    205206          UpdateInterface;
     
    221222    if MessageDlg(SRemoveAcronym, SRemoveAcronymQuery,
    222223    TMsgDlgType.mtConfirmation, [mbCancel, mbOk], 0) = mrOk then begin
     224      Core.AcronymDb.BeginUpdate;
    223225      for I := ListViewAcronyms.Items.Count - 1 downto 0 do
    224226        if ListViewAcronyms.Items[I].Selected then begin
     
    228230      UpdateAcronymsList;
    229231      UpdateInterface;
     232      Core.AcronymDb.EndUpdate;
    230233    end;
    231234  end;
Note: See TracChangeset for help on using the changeset viewer.