mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 15:19:20 +00:00
* Bind udp and http tracker requests to the bind address.
* Allow the torrent's priority to be changed with '+'. * More work on the variables thing. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@625 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -52,6 +52,21 @@ WindowFileList::WindowFileList(core::Download* d, unsigned int* focus) :
|
||||
m_focus(focus) {
|
||||
}
|
||||
|
||||
std::wstring
|
||||
hack_wstring(const std::string& src) {
|
||||
size_t length = ::mbstowcs(NULL, src.c_str(), src.size());
|
||||
|
||||
if (length == (size_t)-1)
|
||||
return std::wstring(L"<invalid>");
|
||||
|
||||
std::wstring dest;
|
||||
dest.resize(length);
|
||||
|
||||
::mbstowcs(&*dest.begin(), src.c_str(), src.size());
|
||||
|
||||
return dest;
|
||||
}
|
||||
|
||||
void
|
||||
WindowFileList::redraw() {
|
||||
m_slotSchedule(this, (cachedTime + 10 * 1000000).round_seconds());
|
||||
|
||||
Reference in New Issue
Block a user