Index: sources/view/VTreatmentCreate.cpp =================================================================== diff -u -rdf74454a7a75eb63ac577739c1fd0f179e479f44 -red0d4b2c30034692c21e5f4997edd253ca7d855b --- sources/view/VTreatmentCreate.cpp (.../VTreatmentCreate.cpp) (revision df74454a7a75eb63ac577739c1fd0f179e479f44) +++ sources/view/VTreatmentCreate.cpp (.../VTreatmentCreate.cpp) (revision ed0d4b2c30034692c21e5f4997edd253ca7d855b) @@ -487,6 +487,7 @@ i++; } QString filename = QString("%0treatment%1.json").arg(dir).arg(i); + _requestedSaveNewTreatmentProfile = true; emit requestConcurrentSave(filename, document.toJson(), false); return filename; } @@ -549,12 +550,21 @@ return FileHandler::write(filename, csvData); } +/*! + * \brief VTreatmentCreate::onFinishedSaveNewTreatment + * Called when any file has been saved to disk. If this + * class requested the + * \param success - (bool) Whether saving was successful + */ void VTreatmentCreate::onFinishedSaveNewTreatment(bool success) { - if (success) { - qDebug() << "------------------> Saved a new treatment."; - } else { - qDebug() << "------------------> Failed to save new treatment."; + if (_requestedSaveNewTreatmentProfile) { + if (success) { + LOG_DEBUG("Treatment profile saved successfully."); + } else { + LOG_DEBUG("Failed to save the treatment profile."); + } + _requestedSaveNewTreatmentProfile = false; } }