mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Followup: To unregister a path in socket api use the alias of folder.
This commit is contained in:
parent
f37b81c8b7
commit
f5c199740d
@ -701,7 +701,13 @@ 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 ) {
|
||||
_socketApi->slotUnregisterPath(localFolder);
|
||||
foreach( Folder *f, _folderMap.values() ) {
|
||||
if(f) {
|
||||
if( localFolder.startsWith(f->path()) ) {
|
||||
_socketApi->slotUnregisterPath(f->alias());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Make a backup of the folder/file.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user