Index: sources/view/vtreatmentadjustmentultrafiltrationstate.cpp =================================================================== diff -u -r5734e6289c18ec3cfe4749de8e3a6043f98dbcff -r7d3062c841b788ced31d939dec990afe0de1442d --- sources/view/vtreatmentadjustmentultrafiltrationstate.cpp (.../vtreatmentadjustmentultrafiltrationstate.cpp) (revision 5734e6289c18ec3cfe4749de8e3a6043f98dbcff) +++ sources/view/vtreatmentadjustmentultrafiltrationstate.cpp (.../vtreatmentadjustmentultrafiltrationstate.cpp) (revision 7d3062c841b788ced31d939dec990afe0de1442d) @@ -58,9 +58,14 @@ { // if there is a reason (passed) it will be used QString mText = VTreatmentAdjustmentResponseBase::text(); + // coco begin validated : Manually tested. + // Although currently there is no reson passed in the corespounding message. + // But kept this code which seems reasonable to have a reason later. if (! mText.isEmpty()) return mText; + // coco end // otherwise a general message will be created/passed. if (! adjustment_Accepted()) { + qDebug() << "VTreatmentAdjustmentUltrafiltrationState::text()" << true; switch (_data.requestedState) { case AdjustUltrafiltrationStateRequestData::eRunning: mText = tr("Unable to Resume Ultrafiltration or already running"); @@ -69,10 +74,9 @@ case AdjustUltrafiltrationStateRequestData::ePaused: mText = tr("Unable to Pause Ultrafiltration or already paused"); break; - - default: - break; } + } else { + qDebug() << "VTreatmentAdjustmentUltrafiltrationState::text()" << false; } return mText; }