diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-04-13 16:47:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 16:47:44 +0300 |
commit | 4033411ffadb7d9491fafe89a2dc72f47173897e (patch) | |
tree | 4583f645f7a13f45ace8af34f9543b545f427cbd /src/gui/navigationpanehelper.cpp | |
parent | 5205defcd23a65d4e7ed889e005d082745bf340b (diff) |
Use the folder object directly instead of looking it up by its name (#9583)
Diffstat (limited to 'src/gui/navigationpanehelper.cpp')
-rw-r--r-- | src/gui/navigationpanehelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/navigationpanehelper.cpp b/src/gui/navigationpanehelper.cpp index 57fff692d..e5b2910dd 100644 --- a/src/gui/navigationpanehelper.cpp +++ b/src/gui/navigationpanehelper.cpp @@ -42,7 +42,7 @@ void NavigationPaneHelper::setShowInExplorerNavigationPane(bool show) _showInExplorerNavigationPane = show; // Re-generate a new CLSID when enabling, possibly throwing away the old one. // updateCloudStorageRegistry will take care of removing any unknown CLSID our application owns from the registry. - for (auto *folder : _folderMan->map()) + for (auto *folder : _folderMan->folders()) folder->setNavigationPaneClsid(show ? QUuid::createUuid() : QUuid()); scheduleUpdateCloudStorageRegistry(); @@ -75,7 +75,7 @@ void NavigationPaneHelper::updateCloudStorageRegistry() // Then re-save every folder that has a valid navigationPaneClsid to the registry. // We currently don't distinguish between new and existing CLSIDs, if it's there we just // save over it. We at least need to update the tile in case we are suddently using multiple accounts. - for (auto *folder : _folderMan->map()) { + for (auto *folder : _folderMan->folders()) { if (folder->vfs().mode() == Vfs::WindowsCfApi) { continue; |