Index: sources/view/settings/VHDUsageInfo.cpp =================================================================== diff -u -r4c975736fbcc57e7e401001440b67b1317849c7e -r2344b221623f3ce2d18f91a255ec6a0649c9db33 --- sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision 4c975736fbcc57e7e401001440b67b1317849c7e) +++ sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision 2344b221623f3ce2d18f91a255ec6a0649c9db33) @@ -24,6 +24,7 @@ void View::VHDUsageInfo::initConnections() { ADJUST_VIEW_CONNECTION( HDUsageInfoRequestData) ACTION_VIEW_CONNECTION(HDUsageInfoResponseData) + ACTION_VIEW_CONNECTION(SettingsData) } /*! @@ -38,9 +39,14 @@ timeFormatted = QString("%1").arg(vData.mTotalTxHoursSinceLastService); totalTxHoursSinceLastService(timeFormatted); - epochOfStartOfLastTx (Format::fromEpoch(vData.mEpochOfStartOfLastTx, _LastTreatmentDateFormat)); + epochOfStartOfLastTx (Format::fromEpoch(vData.mEpochOfStartOfLastTx, _dateFormat)); // *** has to be the last to let the information to be set and then emit the signal *** // *** otherwise will use the Previous values before being set. *** adjustment ( true ); } + +void View::VHDUsageInfo::onActionReceive(const SettingsData &) +{ + _dateFormat = _Settings.dateFormat(); +}