diff options
Diffstat (limited to 'ui/SyncDialog.cpp')
-rw-r--r-- | ui/SyncDialog.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ui/SyncDialog.cpp b/ui/SyncDialog.cpp index 99c7dfde..fe36d751 100644 --- a/ui/SyncDialog.cpp +++ b/ui/SyncDialog.cpp @@ -207,15 +207,11 @@ void SyncDialog::calculatePreview() objectsToDelete, dataToProcess); - wxString toCreate = globalFunctions::numberToWxString(objectsToCreate); - wxString toUpdate = globalFunctions::numberToWxString(objectsToOverwrite); - wxString toDelete = globalFunctions::numberToWxString(objectsToDelete); + wxString toCreate = globalFunctions::includeNumberSeparator(globalFunctions::numberToWxString(objectsToCreate)); + wxString toUpdate = globalFunctions::includeNumberSeparator(globalFunctions::numberToWxString(objectsToOverwrite)); + wxString toDelete = globalFunctions::includeNumberSeparator(globalFunctions::numberToWxString(objectsToDelete)); wxString data = FreeFileSync::formatFilesizeToShortString(dataToProcess); - globalFunctions::includeNumberSeparator(toCreate); - globalFunctions::includeNumberSeparator(toUpdate); - globalFunctions::includeNumberSeparator(toDelete); - m_textCtrlCreate->SetValue(toCreate); m_textCtrlUpdate->SetValue(toUpdate); m_textCtrlDelete->SetValue(toDelete); @@ -629,7 +625,7 @@ void BatchDialog::OnSaveBatchJob(wxCommandEvent& event) if (filePicker->ShowModal() == wxID_OK) { fileName = filePicker->GetPath(); - if (wxFileExists(fileName)) + if (FreeFileSync::fileExists(fileName.c_str())) { wxMessageDialog* messageDlg = new wxMessageDialog(this, wxString(_("File already exists. Overwrite?")) + wxT(" \"") + fileName + wxT("\""), _("Warning") , wxOK | wxCANCEL); |