mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-09 07:39:21 +00:00
* Fixed 'view_*' commands.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1176 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -62,8 +62,8 @@ ViewManager::clear() {
|
||||
|
||||
ViewManager::iterator
|
||||
ViewManager::insert(const std::string& name) {
|
||||
if (find(name) != end())
|
||||
throw torrent::internal_error("ViewManager::insert(...) name already inserted.");
|
||||
if (find(name) != end() || name.empty())
|
||||
throw torrent::input_error("View with same name already inserted.");
|
||||
|
||||
View* view = new View();
|
||||
view->initialize(name);
|
||||
|
||||
Reference in New Issue
Block a user