From 0bfee1eeca1271847a99368b2e1a35c387e0ddb1 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 18 Sep 2014 05:33:51 +0200 Subject: [PATCH] * Try to pass QString to lucene++ via StringUtils. --- src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp b/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp index 0c8355fbb..f3a774cd6 100644 --- a/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp +++ b/src/libtomahawk/database/fuzzyindex/FuzzyIndex.cpp @@ -44,7 +44,8 @@ FuzzyIndex::FuzzyIndex( QObject* parent, const QString& filename, bool wipe ) try { m_analyzer = newLucene(); - m_luceneDir = FSDirectory::open( m_lucenePath.toStdWString() ); + m_luceneDir = FSDirectory::open( StringUtils::toString( m_lucenePath.toUtf8().constData() ) ); +// m_luceneDir = FSDirectory::open( m_lucenePath.toStdWString() ); } catch ( LuceneException& error ) {