Skip to content

Commit

Permalink
Fix UTF8 paths when moving torrents (#628)
Browse files Browse the repository at this point in the history
Closes #620
  • Loading branch information
vktr committed May 20, 2018
1 parent d7d3c8e commit f668bf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/picotorrent/torrentcontextmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ void TorrentContextMenu::Move(wxCommandEvent& WXUNUSED(event))
return;
}

std::string path = dlg.GetPath().ToUTF8();

for (lt::torrent_handle& th : m_state->selected_torrents)
{
th.move_storage(dlg.GetPath().ToStdString());
th.move_storage(path);
}
}

Expand Down

0 comments on commit f668bf3

Please sign in to comment.