diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-05-13 16:42:30 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-05-13 16:42:30 +0000 |
| commit | 895ae02efc82a05674f6c74cda927a052cf2e0fb (patch) | |
| tree | d8c11c4ed6368128181f3e12849f35116a8b7b13 /src/qmmpui | |
| parent | e88a5a7cb2323764b0b2fd42b286ed5a023bb6e1 (diff) | |
| download | qmmp-895ae02efc82a05674f6c74cda927a052cf2e0fb.tar.gz qmmp-895ae02efc82a05674f6c74cda927a052cf2e0fb.tar.bz2 qmmp-895ae02efc82a05674f6c74cda927a052cf2e0fb.zip | |
fixed issue with native separators (#755)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4970 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui')
| -rw-r--r-- | src/qmmpui/fileloader.cpp | 3 | ||||
| -rw-r--r-- | src/qmmpui/fileloader_p.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/qmmpui/fileloader.cpp b/src/qmmpui/fileloader.cpp index 3bb505108..4a7029c8f 100644 --- a/src/qmmpui/fileloader.cpp +++ b/src/qmmpui/fileloader.cpp @@ -21,6 +21,7 @@ #include <qmmp/metadatamanager.h> #include <QRegExp> #include <QMetaType> +#include <QDir> #include "fileloader_p.h" #include "qmmpuisettings.h" #include "playlistitem.h" @@ -172,7 +173,7 @@ void FileLoader::insert(PlayListItem *before, const QStringList &paths) { LoaderTask task; task.before = before; - task.path = path; + task.path = QDir::fromNativeSeparators(path); m_tasks.append(task); } m_mutex.unlock(); diff --git a/src/qmmpui/fileloader_p.h b/src/qmmpui/fileloader_p.h index b2cf2c006..5df8c87fa 100644 --- a/src/qmmpui/fileloader_p.h +++ b/src/qmmpui/fileloader_p.h @@ -21,8 +21,8 @@ #define FILELOADER_H #include <QObject> -#include <QDir> #include <QQueue> +#include <QStringList> #include <QFileInfo> #include <QMutex> #include <QThread> |
