diff --git a/src/project/internal/projectactionscontroller.cpp b/src/project/internal/projectactionscontroller.cpp index 54a378e02027a..3a0ac625d5943 100644 --- a/src/project/internal/projectactionscontroller.cpp +++ b/src/project/internal/projectactionscontroller.cpp @@ -924,7 +924,7 @@ void ProjectActionsController::warnSaveIsNotAvailable(const Ret& ret, const Save warnScoreWithoutPartsCannotBeSaved(); break; case Err::CorruptionUponOpenningError: - warnCorruptedScoreUponOpenningCannotBeSaved(location, ret.text()); + showErrCorruptedScoreCannotBeSaved(location, ret.text()); break; case Err::CorruptionError: { auto project = currentNotationProject(); @@ -946,9 +946,15 @@ void ProjectActionsController::warnCorruptedScoreCannotBeSaved(const SaveLocatio bool newlyCreated) { switch (location.type) { - case SaveLocationType::Cloud: - warnCorruptedScoreCannotBeSavedOnCloud(errorText, newlyCreated); + case SaveLocationType::Cloud: { + if (newlyCreated) { + showErrCorruptedScoreCannotBeSaved(location, errorText); + } else { + warnCorruptedScoreCannotBeSavedOnCloud(errorText, newlyCreated); + } + break; + } case SaveLocationType::Local: warnCorruptedScoreCannotBeSavedLocally(location, errorText, newlyCreated); case SaveLocationType::Undefined: @@ -1023,7 +1029,7 @@ void ProjectActionsController::warnCorruptedScoreCannotBeSavedLocally(const Save } } -void ProjectActionsController::warnCorruptedScoreUponOpenningCannotBeSaved(const SaveLocation& location, const std::string& errorText) +void ProjectActionsController::showErrCorruptedScoreCannotBeSaved(const SaveLocation& location, const std::string& errorText) { std::string title = location.isLocal() ? trc("project", "Your score cannot be saved") : trc("project", "Your score cannot be uploaded to the cloud"); diff --git a/src/project/internal/projectactionscontroller.h b/src/project/internal/projectactionscontroller.h index 44604d7ed9bc5..679dbcc7eee30 100644 --- a/src/project/internal/projectactionscontroller.h +++ b/src/project/internal/projectactionscontroller.h @@ -142,7 +142,7 @@ class ProjectActionsController : public IProjectFilesController, public QObject, void warnCorruptedScoreCannotBeSaved(const SaveLocation& location, const std::string& errorText, bool newlyCreated); void warnCorruptedScoreCannotBeSavedOnCloud(const std::string& errorText, bool newlyCreated); void warnCorruptedScoreCannotBeSavedLocally(const SaveLocation& location, const std::string& errorText, bool newlyCreated); - void warnCorruptedScoreUponOpenningCannotBeSaved(const SaveLocation& location, const std::string& errorText); + void showErrCorruptedScoreCannotBeSaved(const SaveLocation& location, const std::string& errorText); void revertCorruptedScoreToLastSaved();