Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@owncloud.com>2014-10-24 17:07:33 +0400
committerKlaas Freitag <freitag@owncloud.com>2014-10-24 17:07:33 +0400
commit86e13ea06fcc0d131b2f3ff44365154f945b960b (patch)
tree4a3185a06b5ba9cd867668a9c8f453aaf93dbe4e /src/mirall
parentc12d3870cd792d2d82857e15f8f482d0a1f0a38d (diff)
FolderMan: Use folderForPath method to get the folder object for a path
Diffstat (limited to 'src/mirall')
-rw-r--r--src/mirall/folderman.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mirall/folderman.cpp b/src/mirall/folderman.cpp
index 762fcf896..5bceae449 100644
--- a/src/mirall/folderman.cpp
+++ b/src/mirall/folderman.cpp
@@ -701,11 +701,10 @@ bool FolderMan::startFromScratch( const QString& localFolder )
// Disconnect the socket api from the database to avoid that locking of the
// db file does not allow to move this dir.
if( _socketApi ) {
- foreach( Folder *f, _folderMap.values() ) {
- if(f) {
- if( localFolder.startsWith(f->path()) ) {
- _socketApi->slotUnregisterPath(f->alias());
- }
+ Folder *f = folderForPath(localFolder);
+ if(f) {
+ if( localFolder.startsWith(f->path()) ) {
+ _socketApi->slotUnregisterPath(f->alias());
}
}
}