mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 08:47:22 +03:00
Fixed removeAllFolders: Terminate running syncs before removal.
This commit is contained in:
parent
2dcbb54095
commit
5953d36297
1 changed files with 10 additions and 7 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue