fixed leading zeroes problem in title bar

This commit is contained in:
csoler 2018-07-17 10:08:39 +02:00
parent 01d48256a4
commit b9436fbef2
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -360,7 +360,7 @@ QString Rshare::retroshareVersion(bool withRevision)
{ {
QString version = QString("%1.%2.%3%4").arg(RS_MAJOR_VERSION).arg(RS_MINOR_VERSION).arg(RS_BUILD_NUMBER).arg(RS_BUILD_NUMBER_ADD); QString version = QString("%1.%2.%3%4").arg(RS_MAJOR_VERSION).arg(RS_MINOR_VERSION).arg(RS_BUILD_NUMBER).arg(RS_BUILD_NUMBER_ADD);
if (withRevision) { if (withRevision) {
version += QString(" %1 %2").arg(tr("Revision")).arg(QString::number(RS_REVISION_NUMBER,16)); version += QString(" %1 %2").arg(tr("Revision")).arg(RS_REVISION_NUMBER,8,16,QChar('0'));
} }
return version; return version;