mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
* Use correct transform from local 8-bit filename encoding to QString
(this caused some files to being reindexed each time).
This commit is contained in:
parent
27f5e814f7
commit
ef68f7a93c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue