From ef68f7a93c051ac2b5f5f5fa05142c8836669686 Mon Sep 17 00:00:00 2001 From: Konstantin Isakov Date: Mon, 9 Feb 2009 22:49:44 +0000 Subject: [PATCH] * Use correct transform from local 8-bit filename encoding to QString (this caused some files to being reindexed each time). --- src/dictionary.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dictionary.cc b/src/dictionary.cc index da697adc..222c2e7b 100644 --- a/src/dictionary.cc +++ b/src/dictionary.cc @@ -55,7 +55,7 @@ bool Format::needToRebuildIndex( vector< string > const & dictionaryFiles, for( std::vector< string >::const_iterator i = dictionaryFiles.begin(); i != dictionaryFiles.end(); ++i ) { - QFileInfo fileInfo( QString::fromStdString( *i ) ); + QFileInfo fileInfo( QString::fromLocal8Bit( i->c_str() ) ); if ( !fileInfo.exists() ) return true; @@ -66,7 +66,7 @@ bool Format::needToRebuildIndex( vector< string > const & dictionaryFiles, lastModified = ts; } - QFileInfo fileInfo( QString::fromStdString( indexFile ) ); + QFileInfo fileInfo( QString::fromLocal8Bit( indexFile.c_str() ) ); if ( !fileInfo.exists() ) return true;