Changeset 148 for trunk/Forms/UFormCategories.pas
- Timestamp:
- Feb 6, 2017, 12:59:59 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormCategories.pas
r145 r148 105 105 TAcronymCategory(Core.AcronymDb.Categories[Core.AcronymDb.Categories.Add(TAcronymCategory.Create)]).Name := S; 106 106 Core.AcronymDb.Modified := True; 107 Core.AcronymDb.Update; 107 108 UpdateList; 108 109 end else ShowMessage(Format(SCategoryAlreadyExists, [S])); … … 144 145 TAcronymCategory(ListViewCategories.Selected.Data).Name := S; 145 146 Core.AcronymDb.Modified := True; 147 Core.AcronymDb.Update; 146 148 UpdateList; 147 149 end else ShowMessage(Format(SCategoryAlreadyExists, [S])); … … 157 159 if MessageDlg(SRemoveCategory, SRemoveCategoryQuery, 158 160 TMsgDlgType.mtConfirmation, [mbCancel, mbOk], 0) = mrOk then begin 161 Categories.Db.BeginUpdate; 159 162 for I := ListViewCategories.Items.Count - 1 downto 0 do 160 163 if ListViewCategories.Items[I].Selected then 161 164 Categories.Remove(ListViewCategories.Items[I].Data); 165 Categories.Db.EndUpdate; 162 166 UpdateList; 163 167 end;
Note:
See TracChangeset
for help on using the changeset viewer.