Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take reference to folder in folder map within User::getFolder
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
claucambra committed Oct 18, 2024
1 parent 6306bbe commit 49913e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/tray/usermodel.cpp
Original file line number Diff line number Diff line change
@@ -913,7 +913,7 @@ void User::setCurrentUser(const bool &isCurrent)

Folder *User::getFolder() const
{
for (Folder *const folder : FolderMan::instance()->map()) {
for (const auto &folder : FolderMan::instance()->map()) {
if (folder->accountState() == _account.data()) {
return folder;
}

0 comments on commit 49913e6

Please sign in to comment.