From a8a91022b856a9463df0a9927a8eee8c1294f0d2 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Wed, 7 Sep 2011 06:59:53 +0100 Subject: [PATCH] Revert "SplitRide overwrites existing file" This reverts commit c3cfccdfb8f6ebd6a9164032a408d4c6173af75c. Small risk of data loss, 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; }