summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-17 19:08:41 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-17 19:08:41 +0200
commitec37d5b6834e45b2c90a2919fa9023dee5c0237c (patch)
treee7e03cdf444b0e36cb0e0d94177b3145c595fd60 /facetracknoir
parent088a7524206f40b8385b7da8f0377b72942f0dbd (diff)
main: Use proper locale for asciiz conversion
Diffstat (limited to 'facetracknoir')
-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))