Fix syncEnable in folder and folderman.

This commit is contained in:
Klaas Freitag 2013-09-16 08:58:23 +02:00
parent 363efaa408
commit ee840b62e5
2 changed files with 2 additions and 2 deletions

View file

@ -197,9 +197,8 @@ void Folder::setSyncEnabled( bool doit )
{
_enabled = doit;
qDebug() << "setSyncEnabled - ############################ " << doit;
if( doit ) {
evaluateSync( QStringList() );
// qDebug() << "Syncing enabled on folder " << name();
} else {
// do not stop or start the watcher here, that is done internally by
// folder class. Even if the watcher fires, the folder does not

View file

@ -280,6 +280,7 @@ void FolderMan::slotEnableFolder( const QString& alias, bool enable )
Folder *f = _folderMap[alias];
if( f ) {
f->setSyncEnabled(enable);
f->evaluateSync(QStringList());
}
}