mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-29 09:26:18 -05:00
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:
parent
a5a214e265
commit
e88009d0d3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user