summaryrefslogtreecommitdiffstats
path: root/src/library/browse/foldertreemodel.cpp
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2019-01-15 23:39:37 +0100
committerUwe Klotz <uklotz@mixxx.org>2019-01-15 23:39:37 +0100
commit20f69fa918a8166e91ae93128e438052b5234204 (patch)
treee0b84146f787ca722fedc4766e1f871a6e79a045 /src/library/browse/foldertreemodel.cpp
parentd5e6eb51aa12f29abf28b0bf8986df56e42f37a6 (diff)
parent4aa796285025bd1ee1fe78a2210ffc54966dff38 (diff)
Merge branch '2.2' of git@github.com:mixxxdj/mixxx.git
Diffstat (limited to 'src/library/browse/foldertreemodel.cpp')
-rw-r--r--src/library/browse/foldertreemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/browse/foldertreemodel.cpp b/src/library/browse/foldertreemodel.cpp
index 03738bed54..b55d2de628 100644
--- a/src/library/browse/foldertreemodel.cpp
+++ b/src/library/browse/foldertreemodel.cpp
@@ -86,7 +86,7 @@ bool FolderTreeModel::directoryHasChildren(const QString& path) const {
// http://stackoverflow.com/questions/2579948/checking-if-subfolders-exist-linux
std::string dot("."), dotdot("..");
- QByteArray ba = path.toLocal8Bit();
+ QByteArray ba = QFile::encodeName(path);
DIR *directory = opendir(ba);
int unknown_count = 0;
int total_count = 0;