From 189f11d80f2ad40738fccbbb86be574a1faf113c Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Wed, 7 Sep 2011 07:01:00 +0100 Subject: [PATCH] Revert "SplitRide overwrites existing file" This reverts commit 183564d1ea2a4cfaf3e8a619cae0d79ade282fb5. Small risk of losing data, reverting to previous behaviour. --- src/SplitRideDialog.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/SplitRideDialog.cpp b/src/SplitRideDialog.cpp index 5398927bf..441f4119a 100644 --- a/src/SplitRideDialog.cpp +++ b/src/SplitRideDialog.cpp @@ -163,11 +163,7 @@ SplitRideDialog::CreateNewRideFile(const RideFile *ride, int nRecStart, int nRec QFile file(filePath); if (file.exists()) { - QString backupPath = filePath + ".bak"; - QMessageBox::warning(this, tr("Split Ride"), tr("The file %1 already exists and will backed up to %2").arg(filePath).arg(backupPath)); - - QFile(backupPath).remove(); // just wipe away any previously saved backup - file.rename(backupPath); + QMessageBox::critical(this, tr("Split Ride"), tr("The file %1 already exists and will not be overwritten").arg(filePath)); return; }