FileItemDialog: more clarity in the label

- finished %n sec ago -> last finished %n sec ago
- switch to minutes after 60 seconds
This commit is contained in:
Daniel Molkentin 2013-06-11 22:34:37 +02:00
parent bb5cf37330
commit d323ec5dd9

View file

@ -123,7 +123,10 @@ void FileItemDialog::slotSetFolderMessage()
QDateTime now = QDateTime::currentDateTime();
int secs = _lastSyncTime.secsTo(now);
_timelabel->setText(tr("%1 (finished %n sec. ago)", "", secs).arg(_folderMessage));
if (secs < 60)
_timelabel->setText(tr("%1 (last finished %n sec. ago)", "", secs).arg(_folderMessage));
else
_timelabel->setText(tr("%1 (last finished %n min. ago)", "", secs/60).arg(_folderMessage));
}
void FileItemDialog::copyToClipboard()