From: H.G.Muller Date: Sun, 24 Apr 2016 10:30:14 +0000 (+0200) Subject: Save programStartTime in settings file rather than save time X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=fa81f9170982520d00d773733bfac265978f0494;p=xboard.git Save programStartTime in settings file rather than save time The -saveDate time stamp is used to decide whether XBoard has seen options added to the master settings file before. But it looks only to the master settings file at stratup. So when we save settings we now put XBoards startup time as -saveDte in it, so that installs when XBoard was already running would still find their way into the user settings file. --- diff --git a/args.h b/args.h index c67abf1..85e8765 100644 --- a/args.h +++ b/args.h @@ -1530,11 +1530,10 @@ SaveSettings(char* name) ArgDescriptor *ad; char dir[MSG_SIZ], buf[MSG_SIZ]; int mps = appData.movesPerSession; - TimeMark now; if (!MainWindowUp() && !autoClose) return; - GetTimeMark(&now); saveDate = now.sec; + saveDate = programStartTime.sec; GetCurrentDirectory(MSG_SIZ, dir); if(MySearchPath(installDir, name, buf)) {