Skip to content

Commit

Permalink
Fixed file UID changing on every save
Browse files Browse the repository at this point in the history
  • Loading branch information
Serg-Norseman committed Jan 11, 2024
1 parent 76adddf commit 03628c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/GKCore/GKCore/GKUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1764,6 +1764,7 @@ public static void PrepareHeader(GDMTree tree, string fileName, GEDCOMCharacterS

string subm = header.Submitter.XRef;
int oldRev = header.File.Revision;
string uid = header.File.UID;
GDMLanguageID langId = header.Language;
string note = header.Note.Lines.Text.Trim();

Expand All @@ -1778,6 +1779,7 @@ public static void PrepareHeader(GDMTree tree, string fileName, GEDCOMCharacterS
header.TransmissionDateTime = DateTime.Now;

header.Source.Version = GKData.APP_FORMAT_CURVER.ToString();
header.File.UID = uid;

if (zeroRev) {
header.File.Revision = 0;
Expand Down

0 comments on commit 03628c2

Please sign in to comment.