зеркало из https://github.com/nextcloud/desktop.git
Fixed removeAllFolders: Terminate running syncs before removal.
This commit is contained in:
Родитель
2dcbb54095
Коммит
5953d36297
|
@ -320,6 +320,16 @@ void FolderMan::addFolderDefinition( const QString& backend, const QString& alia
|
|||
|
||||
}
|
||||
|
||||
void FolderMan::removeAllFolderDefinitions()
|
||||
{
|
||||
foreach( Folder *f, _folderMap.values() ) {
|
||||
slotRemoveFolder( f->alias() );
|
||||
}
|
||||
// clear the queue.
|
||||
_scheduleQueue.clear();
|
||||
|
||||
}
|
||||
|
||||
void FolderMan::slotRemoveFolder( const QString& alias )
|
||||
{
|
||||
if( alias.isEmpty() ) return;
|
||||
|
@ -331,13 +341,6 @@ void FolderMan::slotRemoveFolder( const QString& alias )
|
|||
removeFolder(alias);
|
||||
}
|
||||
|
||||
void FolderMan::removeAllFolderDefinitions()
|
||||
{
|
||||
foreach( Folder *f, _folderMap.values() ) {
|
||||
removeFolder( f->alias() );
|
||||
}
|
||||
}
|
||||
|
||||
// remove a folder from the map. Should be sure n
|
||||
void FolderMan::removeFolder( const QString& alias )
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче