Skip to content

Commit

Permalink
Merge pull request #977 from vktr/fix/more-unicode
Browse files Browse the repository at this point in the history
Fix unicode issue when saving save path
  • Loading branch information
vktr committed Oct 16, 2020
2 parents e392978 + 6a435d7 commit f181624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/picotorrent/ui/dialogs/preferencesdownloadspage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void PreferencesDownloadsPage::Save()
long ulLimit = 0;
m_uploadLimit->GetValue().ToLong(&ulLimit);

m_cfg->Set("default_save_path", m_savePathCtrl->GetPath().ToStdString());
m_cfg->Set("default_save_path", Utils::toStdString(m_savePathCtrl->GetPath().ToStdWstring()));
m_cfg->Set("libtorrent.enable_download_rate_limit", m_enableDownloadLimit->GetValue());
m_cfg->Set("libtorrent.download_rate_limit", static_cast<int>(dlLimit));
m_cfg->Set("libtorrent.enable_upload_rate_limit", m_enableUploadLimit->GetValue());
Expand Down

0 comments on commit f181624

Please sign in to comment.