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/UFormCategories.pas

    r145 r148  
    105105      TAcronymCategory(Core.AcronymDb.Categories[Core.AcronymDb.Categories.Add(TAcronymCategory.Create)]).Name := S;
    106106      Core.AcronymDb.Modified := True;
     107      Core.AcronymDb.Update;
    107108      UpdateList;
    108109    end else ShowMessage(Format(SCategoryAlreadyExists, [S]));
     
    144145        TAcronymCategory(ListViewCategories.Selected.Data).Name := S;
    145146        Core.AcronymDb.Modified := True;
     147        Core.AcronymDb.Update;
    146148        UpdateList;
    147149      end else ShowMessage(Format(SCategoryAlreadyExists, [S]));
     
    157159    if MessageDlg(SRemoveCategory, SRemoveCategoryQuery,
    158160    TMsgDlgType.mtConfirmation, [mbCancel, mbOk], 0) = mrOk then begin
     161      Categories.Db.BeginUpdate;
    159162      for I := ListViewCategories.Items.Count - 1 downto 0 do
    160163      if ListViewCategories.Items[I].Selected then
    161164        Categories.Remove(ListViewCategories.Items[I].Data);
     165      Categories.Db.EndUpdate;
    162166      UpdateList;
    163167    end;
Note: See TracChangeset for help on using the changeset viewer.