Index: sources/view/settings/VHDUsageInfo.cpp =================================================================== diff -u -r36d49ba38a1e56929f1ce3c6fe8b7a0933d5f46a -rb6232218bc2ae9dcd509e92af5ced52a58629499 --- sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision 36d49ba38a1e56929f1ce3c6fe8b7a0933d5f46a) +++ sources/view/settings/VHDUsageInfo.cpp (.../VHDUsageInfo.cpp) (revision b6232218bc2ae9dcd509e92af5ced52a58629499) @@ -33,22 +33,20 @@ */ void View::VHDUsageInfo::onActionReceive(const HDUsageInfoResponseData &vData) { - totalTxHours (vData.mTotalTxHours ); - totalTxHoursSinceLastService(vData.mTotalTxHoursSinceLastService); - epochOfStartOfLastTx (vData.mEpochOfStartOfLastTx ); - epochOfLastRecordReset (vData.mEpochOfLastRecordReset ); - crc (vData.mCrc ); int hours = vData.mTotalTxHours; int minutes = (vData.mTotalTxHours - hours) * 60; QString timeFormatted = QString("%1:%2").arg(hours).arg(minutes); - totalTxHoursString(timeFormatted); + totalTxHours(timeFormatted); hours = vData.mTotalTxHoursSinceLastService; minutes = (vData.mTotalTxHoursSinceLastService - hours) * 60; timeFormatted = QString("%1:%2").arg(hours).arg(minutes); - totalTxHoursSinceLastServiceString(timeFormatted); + totalTxHoursSinceLastService(timeFormatted); + epochOfStartOfLastTx (vData.mEpochOfStartOfLastTx ? QString("%1").arg(vData.mEpochOfStartOfLastTx ) : "" ); + epochOfLastRecordReset (vData.mEpochOfLastRecordReset ? QString("%1").arg(vData.mEpochOfLastRecordReset) : "" ); + // *** 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 );