* Made the signal in View trigger using a task, thus avoiding bad

recursions and wrongly orderer commands. This should fix some problems
with hash checking returning errno 0.

* More changes to View usage.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1048 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2008-03-27 15:41:11 +00:00
parent e8e5ef337b
commit a6045c9ea5
13 changed files with 88 additions and 65 deletions
+1 -7
View File
@@ -53,12 +53,6 @@
namespace core {
// Really need to implement a factory and allow options in the sort
// statements.
ViewManager::ViewManager(DownloadList* dl) :
m_list(dl) {
}
void
ViewManager::clear() {
std::for_each(begin(), end(), rak::call_delete<View>());
@@ -72,7 +66,7 @@ ViewManager::insert(const std::string& name) {
throw torrent::internal_error("ViewManager::insert(...) name already inserted.");
View* view = new View();
view->initialize(name, m_list);
view->initialize(name);
return base_type::insert(end(), view);
}