mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-17 15:42:30 +00:00
* Fixed group commands.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1179 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -62,7 +62,10 @@ ViewManager::clear() {
|
||||
|
||||
ViewManager::iterator
|
||||
ViewManager::insert(const std::string& name) {
|
||||
if (find(name) != end() || name.empty())
|
||||
if (name.empty())
|
||||
throw torrent::input_error("View with empty name not supported.");
|
||||
|
||||
if (find(name) != end())
|
||||
throw torrent::input_error("View with same name already inserted.");
|
||||
|
||||
View* view = new View();
|
||||
|
||||
Reference in New Issue
Block a user