Changeset 97 for trunk/Forms/UFormAcronyms.pas
- Timestamp:
- Aug 22, 2016, 1:16:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAcronyms.pas
r96 r97 131 131 Meaning.Description := TempEntry.Description; 132 132 Meaning.Categories.AssignFromStrings(TempEntry.Categories); 133 134 // Update reverse references 133 135 for I := 0 to Meaning.Categories.Count - 1 do 134 TAcronymCategory(Meaning.Categories.Items[I]).AcronymMeanings.Add(Meaning); 136 if TAcronymCategory(Meaning.Categories.Items[I]).AcronymMeanings.IndexOf(Meaning) = -1 then 137 TAcronymCategory(Meaning.Categories.Items[I]).AcronymMeanings.Add(Meaning); 138 135 139 UpdateAcronymsList; 136 140 UpdateInterface; … … 173 177 Meaning.Description := TempEntry.Description; 174 178 Meaning.Categories.AssignFromStrings(TempEntry.Categories); 179 180 // Update reverse references 175 181 for I := 0 to Meaning.Categories.Count - 1 do 176 TAcronymCategory(Meaning.Categories.Items[I]).AcronymMeanings.Add(Meaning); 182 if TAcronymCategory(Meaning.Categories.Items[I]).AcronymMeanings.IndexOf(Meaning) = -1 then 183 TAcronymCategory(Meaning.Categories.Items[I]).AcronymMeanings.Add(Meaning); 184 177 185 UpdateAcronymsList; 178 186 UpdateInterface;
Note:
See TracChangeset
for help on using the changeset viewer.