Don’t restore “search hidden folders” setting

This is only because of upcoming code changes. Wether or not to search hidden folders can be expressed using the glob list, so a dedicated setting is redundant.
This commit is contained in:
Allan Odgaard
2012-09-11 22:58:52 +02:00
parent 015d6a2a23
commit 6f2e6bb3e5

View File

@@ -125,11 +125,7 @@ NSString* const FolderOptionsDefaultsKey = @"Folder Search Options";
std::string const& path = self.windowController.searchFolder.UTF8String;
std::map<std::string, find::folder_scan_settings_t>::const_iterator const& it = folderSettings.find(path);
if(it != folderSettings.end())
{
find::folder_scan_settings_t const& settings = it->second;
self.windowController.followLinks = settings.follow_links;
self.windowController.searchHiddenFolders = !settings.skip_hidden_folders;
}
self.windowController.followLinks = it->second.follow_links;
}
}
}