Get a const auto for the FolderMap to iterate over

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Dominique Fuchs 2020-07-21 11:44:52 +02:00 committed by Kevin Ottens (Rebase PR Action)
parent dbdf40ea45
commit cd3a72822e

View file

@ -105,8 +105,10 @@ void Systray::create()
}
hideWindow();
emit activated(QSystemTrayIcon::ActivationReason::Unknown);
for (const auto *folderMap : FolderMan::instance()->map()) {
if(!folderMap->syncPaused()) {
const auto folderMap = FolderMan::instance()->map();
for (const auto *folder : folderMap) {
if(!folder->syncPaused()) {
_syncIsPaused = false;
}
}