mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 21:52:30 +00:00
* 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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user