Folders. Fix incorrect alias concatenation. Avoids leading zero.

Signed-off-by: alex-z <blackslayer4@gmail.com>
This commit is contained in:
alex-z 2023-11-14 19:20:51 +01:00 committed by allexzander
parent e77b52e708
commit c2143b0553

View file

@ -1223,7 +1223,7 @@ Folder *FolderMan::addFolderInternal(
|| _folderMap.contains(folderDefinition.alias)
|| _additionalBlockedFolderAliases.contains(folderDefinition.alias)) {
// There is already a folder configured with this name and folder names need to be unique
folderDefinition.alias = alias + QString::number(++count);
folderDefinition.alias = QString::number(alias.toInt() + (++count));
}
auto folder = new Folder(folderDefinition, accountState, std::move(vfs), this);