Mark Liversedge 1d135aee5c Fix Save when old .bak exists
If you save a ride and then delete it. The re-import and save
you will end up with two copies of the ride in the ride list.

This is because when we save the first time the original file
is renamed to e.g. ride.tcx.bak and the new ride.json is then
created. All is well.

But then delete the ride and it will rename ride.json to
ride.json.bak. Again, All is well.

Now, re-import the ride. We now have; ride.tcx.bak and
ride.json.bak and ride.tcx. Again, all is well.

But now, if you make changes and save it will attempt to
rename ride.tcx to ride.tcx.bak AND FAIL. This is because
the old ride.tcx.bak file is there. It will then create
ride.json. All is NOT well, since we have two rides with
the same date and time but different extensions.

This patch fixes this by unlinking ride.ext.bak before
trying to rename the file.

Fixes #348.
2011-08-03 19:42:07 +01:00
2010-12-30 17:35:23 +00:00
2009-10-03 17:57:22 -04:00
2011-05-17 21:05:47 +01:00
2011-08-03 19:42:07 +01:00
2009-09-20 11:13:11 -07:00
2009-09-20 11:13:11 -07:00
2006-09-06 23:59:42 +00:00
2011-05-10 18:21:08 +01:00

To build

  cp src/gcconfig.pri.in src/gcconfig.pri
  cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri

Edit both src/gcconfig.pri and qwt/qwtconfig.pri as necessary, then

  qmake
  make

To uninstall the older FTDI VCP drivers on Mac OS X, open a Terminal and type:

  sudo mv /System/Library/Extensions/FTDIUSBSerialDriver.kext /tmp

Type your password when prompted, then restart your computer.
Languages
Standard ML 68.3%
C++ 28.1%
C 2.7%
Yacc 0.2%
QMake 0.2%
Other 0.1%