diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:01:29 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:01:29 +0200 |
commit | 9a2a524f1e311853d08050be2dcdddc09ac7759a (patch) | |
tree | d8e4a24169fce88c2d89931d58514889a0bcb0ea /RealtimeSync/functions.cpp | |
parent | 2.3 (diff) | |
download | FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.gz FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.tar.bz2 FreeFileSync-9a2a524f1e311853d08050be2dcdddc09ac7759a.zip |
3.0
Diffstat (limited to 'RealtimeSync/functions.cpp')
-rw-r--r-- | RealtimeSync/functions.cpp | 8 |
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)); } |