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 Dec 1, 2023
1 parent a94f9c3 commit ce1f258
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 ce1f258

Please sign in to comment.