Skip to content

Commit

Permalink
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 <[email protected]>
  • Loading branch information
claucambra committed Oct 16, 2024
1 parent 1b5f318 commit 26b4405
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
Expand Up @@ -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;
}
Expand Down

0 comments on commit 26b4405

Please sign in to comment.