#5147 Use "PathId_000" as base for the path ids

This commit is contained in:
Jacob Støren 2019-12-17 13:24:37 +01:00
parent 0bd9ef925a
commit 7f393f5ad8

View File

@ -1494,7 +1494,8 @@ public:
private:
QString createUnusedId()
{
QString pathIdentifier = PATHIDCHAR + pathIdBaseString + QString::number( m_nextValidIdNumber ) + PATHIDCHAR;
QString numberString = QString( "%1" ).arg( (uint)m_nextValidIdNumber, 3, 10, QChar( '0' ) );
QString pathIdentifier = PATHIDCHAR + pathIdBaseString + numberString + PATHIDCHAR;
m_nextValidIdNumber++;
return pathIdentifier;
}