summaryrefslogtreecommitdiff
path: root/RealtimeSync/functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'RealtimeSync/functions.cpp')
-rw-r--r--RealtimeSync/functions.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/RealtimeSync/functions.cpp b/RealtimeSync/functions.cpp
index f966187e..e5e3f5f5 100644
--- a/RealtimeSync/functions.cpp
+++ b/RealtimeSync/functions.cpp
@@ -2,14 +2,16 @@
#include <wx/textctrl.h>
#include <wx/filepicker.h>
//#include "../shared/globalFunctions.h"
+#include "../shared/stringConv.h"
#include "../shared/fileHandling.h"
+using namespace FreeFileSync;
void RealtimeSync::setDirectoryName(const wxString& dirname, wxTextCtrl* txtCtrl, wxDirPickerCtrl* dirPicker)
{
txtCtrl->SetValue(dirname);
- const Zstring leftDirFormatted = FreeFileSync::getFormattedDirectoryName(dirname.c_str());
- if (wxDirExists(leftDirFormatted.c_str()))
- dirPicker->SetPath(leftDirFormatted.c_str());
+ const Zstring leftDirFormatted = FreeFileSync::getFormattedDirectoryName(wxToZ(dirname));
+ if (dirExists(leftDirFormatted))
+ dirPicker->SetPath(zToWx(leftDirFormatted));
}
bgstack15