Skip to content

Commit

Permalink
Folders. Fix incorrect alias concatenation. Avoids leading zero.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <[email protected]>
  • Loading branch information
allexzander committed Nov 20, 2023
1 parent 90db41d commit 8dfc3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/folderman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8dfc3bc

Please sign in to comment.