FolderMan: fix folderSyncStateChange emission. #2896

It was not emitted when a removed folder finished its sync,
and that left the UI in an old state sometimes.

Removing the Folder explicitly is unnecessary as a QSignalMapper
will automatically remove mappings for deleted QObjects.
This commit is contained in:
Christian Kamm 2015-03-12 09:58:30 +01:00
parent 3992fba168
commit d0f07ee3a9

View file

@ -106,7 +106,6 @@ void FolderMan::unloadFolder( const QString& alias )
_socketApi->slotUnregisterPath(alias);
}
_folderChangeSignalMapper->removeMappings(f);
if( _folderWatchers.contains(alias)) {
_folderWatchers.remove(alias);
}