diff --git a/Vienna/Sources/Main window/FoldersTree.m b/Vienna/Sources/Main window/FoldersTree.m index 5eb6dcfbdd..4802d64d74 100644 --- a/Vienna/Sources/Main window/FoldersTree.m +++ b/Vienna/Sources/Main window/FoldersTree.m @@ -159,12 +159,9 @@ -(void)reloadDatabase:(NSArray *)stateArray // recover from problems by putting missing folders under root node NSArray *allFolders = [[[Database sharedManager] arrayOfAllFolders] sortedArrayUsingSelector:@selector(folderNameCompare:)]; // all RSS and group folders - NSArray *installedFolders = [self folders:0]; // RSS folders already present for (Folder *folder in allFolders) { - if ((folder.type == VNAFolderTypeRSS || folder.type == VNAFolderTypeOpenReader) - && ![installedFolders containsObject:folder]) - { - (void)[[TreeNode alloc] init:self.rootNode atIndex:-1 folder:folder canHaveChildren:NO]; + if (![[self children:0] containsObject:folder]) { // not in already installed RSS and group folders + (void)[[TreeNode alloc] init:self.rootNode atIndex:-1 folder:folder canHaveChildren:folder.isGroupFolder]; } } // save the state after recovery