From 0c668c0d0ba896175c906e6d0ff32b1fa8aa64a8 Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Sun, 25 Nov 2018 20:48:56 -0300 Subject: [PATCH] Fixed error message in Train Library when workouts cannot be copied The existing message is misleading and it's a source of users complains when they have the Library set to a read only folder. Fixes #2945 --- src/Train/Library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Train/Library.cpp b/src/Train/Library.cpp index 9675de678..ce922140d 100644 --- a/src/Train/Library.cpp +++ b/src/Train/Library.cpp @@ -205,7 +205,7 @@ Library::importFiles(Context *context, QStringList files) if (targetWorkout != QFileInfo(source).absoluteFilePath() && !source.copy(targetWorkout)) { QMessageBox::warning(NULL, tr("Copy Workout Failed"), - QString(tr("%1 already exists in workout library: %2")).arg(QFileInfo(targetWorkout).fileName()).arg(workoutDir)); + QString(tr("%1 cannot be written to workout library %2, check permissions and free space")).arg(QFileInfo(targetWorkout).fileName()).arg(workoutDir)); } // still add it, it may noit have been scanned...