* Fixed group commands.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1179 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2010-10-06 12:08:44 +00:00
parent 49f61eeda3
commit a0f3e95d20
3 changed files with 16 additions and 21 deletions
+4 -1
View File
@@ -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();