Followup: To unregister a path in socket api use the alias of folder.

This commit is contained in:
Klaas Freitag 2014-10-24 11:36:01 +02:00
parent f37b81c8b7
commit f5c199740d

View File

@ -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.