mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 13:12:32 +00:00
* Bindings::pressed didn't use a temporary to store the result of "itr
!= end()" test. * Properly clean up trailing '/' in EntryList::set_root_dir(...) and fixed EntryList::make_directory so it actually makes them. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@776 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -49,10 +49,11 @@ Bindings::pressed(int key) {
|
||||
|
||||
const_iterator itr = find(key);
|
||||
|
||||
if (itr != end())
|
||||
itr->second();
|
||||
if (itr == end())
|
||||
return false;
|
||||
|
||||
return itr != end();
|
||||
itr->second();
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user