FolderMan: fix folderSyncStateChange emission. #2896
authorChristian Kamm <kamm@incasoftware.de>
Thu, 12 Mar 2015 08:58:30 +0000 (09:58 +0100)
committerChristian Kamm <kamm@incasoftware.de>
Thu, 12 Mar 2015 09:00:45 +0000 (10:00 +0100)
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.

src/gui/folderman.cpp

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