mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 14:49:21 +00:00
* Added all the clients to the new ClientList and fixed it so that it
prints the version number. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@805 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
|
||||
#include "canvas.h"
|
||||
#include "client_info.h"
|
||||
#include "utils.h"
|
||||
#include "window_peer_list.h"
|
||||
|
||||
namespace display {
|
||||
@@ -139,11 +140,10 @@ WindowPeerList::redraw() {
|
||||
x += 7;
|
||||
|
||||
char buf[128];
|
||||
torrent::ClientInfo clientInfo = torrent::client_list()->parse_id(p.id());
|
||||
torrent::ClientInfo clientInfo;
|
||||
torrent::client_list()->retrieve_id(&clientInfo, p.id());
|
||||
|
||||
std::strncpy(buf, clientInfo.short_description(), 128);
|
||||
|
||||
// control->client_info()->print(buf, buf + 128, p.id().data());
|
||||
print_client_version(buf, buf + 128, clientInfo);
|
||||
|
||||
m_canvas->print(x, y, "%s", buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user