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
This commit is contained in:
Ale Martinez
2018-11-25 20:48:56 -03:00
parent aae62438d3
commit 0c668c0d0b

View File

@@ -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...