Merge branch 'dk_dwnldr_merge'
This commit is contained in:
commit
511408841a
2 changed files with 2 additions and 1 deletions
|
@ -177,6 +177,7 @@ void Downloader::on_error(wxCommandEvent& event)
|
|||
BOOST_LOG_TRIVIAL(error) << "Download error: " << event.GetString();
|
||||
NotificationManager* ntf_mngr = wxGetApp().notification_manager();
|
||||
ntf_mngr->set_download_URL_error(id, boost::nowide::narrow(event.GetString()));
|
||||
show_error(nullptr, format_wxstr(L"%1%\n%2%", _L("The download has failed:"), event.GetString()));
|
||||
}
|
||||
void Downloader::on_complete(wxCommandEvent& event)
|
||||
{
|
||||
|
|
|
@ -129,7 +129,7 @@ void FileGet::priv::get_perform()
|
|||
if (m_written == 0)
|
||||
file = fopen(temp_path_wstring.c_str(), "wb");
|
||||
else
|
||||
file = fopen(temp_path_wstring.c_str(), "a");
|
||||
file = fopen(temp_path_wstring.c_str(), "ab");
|
||||
|
||||
assert(file != NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue