mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Folders. Fix incorrect alias concatenation. Avoids leading zero.
Signed-off-by: alex-z <blackslayer4@gmail.com>
This commit is contained in:
parent
e77b52e708
commit
c2143b0553
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue