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 authored and backportbot[bot] committed Oct 18, 2024
1 parent 4dd7ca3 commit c48c1c2
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 c48c1c2

Please sign in to comment.