1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

* Try to pass QString to lucene++ via StringUtils.

This commit is contained in:
Christian Muehlhaeuser 2014-09-18 05:33:51 +02:00
parent ec137c3269
commit 0bfee1eeca

View File

@ -44,7 +44,8 @@ FuzzyIndex::FuzzyIndex( QObject* parent, const QString& filename, bool wipe )
try
{
m_analyzer = newLucene<SimpleAnalyzer>();
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 )
{