summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--facetracknoir/facetracknoir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index fa1b7ea6..1b09a681 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -335,7 +335,7 @@ void FaceTrackNoIR::save() {
iniFile.endGroup ();
#if defined(__unix) || defined(__linux)
- QByteArray bytes = currentFile.toUtf8();
+ QByteArray bytes = QFile::encodeName(currentFile);
const char* filename_as_asciiz = bytes.constData();
if (access(filename_as_asciiz, R_OK | W_OK))