fixed compile (patch from Phenom)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8337 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
electron128 2015-06-01 16:35:00 +00:00
parent a5a214e265
commit e88009d0d3

View File

@ -548,13 +548,13 @@ void IdDialog::requestIdDetails()
static QString getHumanReadableDuration(uint32_t seconds)
{
if(seconds < 60)
return QString(tr("%1 seconds ago")).arg(seconds) ;
return QString(QObject::tr("%1 seconds ago")).arg(seconds) ;
else if(seconds < 3600)
return QString(tr("%1 minute(s) ago")).arg(seconds/60) ;
return QString(QObject::tr("%1 minute(s) ago")).arg(seconds/60) ;
else if(seconds < 24*3600)
return QString(tr("%1 hour(s) ago")).arg(seconds/3600) ;
return QString(QObject::tr("%1 hour(s) ago")).arg(seconds/3600) ;
else
return QString(tr("%1 day(s) ago")).arg(seconds/86400) ;
return QString(QObject::tr("%1 day(s) ago")).arg(seconds/86400) ;
}
void IdDialog::insertIdDetails(uint32_t token)