Fixed removeAllFolders: Terminate running syncs before removal.

This commit is contained in:
Klaas Freitag 2012-06-13 11:30:26 +02:00
parent 2dcbb54095
commit 5953d36297

View file

@ -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 )
{