Skip to content

Commit

Permalink
Merge pull request #973 from vktr/fix/unicode
Browse files Browse the repository at this point in the history
Fix unicode issues in Add torrent dialog
  • Loading branch information
vktr committed Oct 12, 2020
2 parents 2bda88b + acad645 commit 5a2fb36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/picotorrent/ui/dialogs/addtorrentdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ wxString AddTorrentDialog::GetTorrentDisplayName(libtorrent::add_torrent_params
{
if (params.ti)
{
return params.ti->name();
return Utils::toStdWString(params.ti->name());
}

if (params.name.size() > 0)
{
return params.name;
return Utils::toStdWString(params.name);
}

std::stringstream hash;
Expand Down
2 changes: 1 addition & 1 deletion src/picotorrent/ui/mainframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ MainFrame::MainFrame(std::shared_ptr<Core::Environment> env, std::shared_ptr<Cor
auto torrent = static_cast<BitTorrent::TorrentHandle*>(evt.GetClientData());
m_taskBarIcon->ShowBalloon(
i18n("torrent_finished"),
torrent->Status().name);
Utils::toStdWString(torrent->Status().name));
});

this->Bind(ptEVT_TORRENT_REMOVED, [this](pt::BitTorrent::InfoHashEvent& evt)
Expand Down

0 comments on commit 5a2fb36

Please sign in to comment.