From bb053410dd33f0ee58ca1d00db3e637531a8ddc6 Mon Sep 17 00:00:00 2001 From: alex-z Date: Tue, 14 Nov 2023 19:20:51 +0100 Subject: [PATCH] Folders. Fix incorrect alias concatenation. Avoids leading zero. Signed-off-by: alex-z --- src/gui/folderman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index 40ec8412685d3..1736e7509c969 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -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);