Merge branch 'goldendict:master' into staged

This commit is contained in:
xiaoyifang 2022-06-28 15:06:10 +08:00 committed by GitHub
commit 417628292d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
dsl.cc
View file

@ -322,7 +322,7 @@ DslDictionary::DslDictionary( string const & id,
resourceDir1 = getDictionaryFilenames()[ 0 ] + ".files" + FsEncoding::separator(); resourceDir1 = getDictionaryFilenames()[ 0 ] + ".files" + FsEncoding::separator();
QString s = FsEncoding::decode( getDictionaryFilenames()[ 0 ].c_str() ); QString s = FsEncoding::decode( getDictionaryFilenames()[ 0 ].c_str() );
if( s.endsWith( QString::fromLatin1( ".dz", Qt::CaseInsensitive ) ) ) if( s.endsWith( QString::fromLatin1( ".dz" ), Qt::CaseInsensitive ) )
s.chop( 3 ); s.chop( 3 );
resourceDir2 = FsEncoding::encode( s ) + ".files" + FsEncoding::separator(); resourceDir2 = FsEncoding::encode( s ) + ".files" + FsEncoding::separator();