aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/fileloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/fileloader.cpp')
-rw-r--r--src/qmmpui/fileloader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmmpui/fileloader.cpp b/src/qmmpui/fileloader.cpp
index 4df1eec40..98e881872 100644
--- a/src/qmmpui/fileloader.cpp
+++ b/src/qmmpui/fileloader.cpp
@@ -87,6 +87,7 @@ void FileLoader::run()
void FileLoader::loadFile(const QString &path)
{
m_files.enqueue(path);
+ MetaDataManager::instance()->prepareForAnotherThread();
m_filters = MetaDataManager::instance()->nameFilters();
start(QThread::IdlePriority);
}
@@ -94,6 +95,7 @@ void FileLoader::loadFile(const QString &path)
void FileLoader::loadFiles(const QStringList &paths)
{
m_files << paths;
+ MetaDataManager::instance()->prepareForAnotherThread();
m_filters = MetaDataManager::instance()->nameFilters();
start(QThread::IdlePriority);
}