summaryrefslogtreecommitdiff
path: root/lib/dir_name.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dir_name.cpp')
-rw-r--r--lib/dir_name.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dir_name.cpp b/lib/dir_name.cpp
index 010fb218..71a3e9ef 100644
--- a/lib/dir_name.cpp
+++ b/lib/dir_name.cpp
@@ -124,7 +124,7 @@ void DirectoryName<NameControl>::OnFilesDropped(FFSFileDropEvent& event)
setDirectoryName(fileName, &dirName_, &dirPicker_, dirName_, staticBox_);
else
{
- wxString parentName = beforeLast(fileName, FILE_NAME_SEPARATOR); //returns empty string if ch not found
+ wxString parentName = beforeLast(fileName, utf8CvrtTo<wxString>(FILE_NAME_SEPARATOR)); //returns empty string if ch not found
#ifdef FFS_WIN
if (endsWith(parentName, L":")) //volume name
parentName += FILE_NAME_SEPARATOR;
bgstack15