From 323395c75557650183ee3e41f0f0ba085593b9be Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Wed, 10 Jul 2024 23:59:34 +0800 Subject: [PATCH] fix:mdx dictionary make issue compatibility --- src/dict/mdictparser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict/mdictparser.cc b/src/dict/mdictparser.cc index 4a49047a..42f3f807 100644 --- a/src/dict/mdictparser.cc +++ b/src/dict/mdictparser.cc @@ -372,7 +372,7 @@ bool MdictParser::readHeader( QDataStream & in ) // Read metadata rtl_ = headerAttributes.namedItem( "Left2Right" ).toAttr().value() != "Yes"; QString title = headerAttributes.namedItem( "Title" ).toAttr().value(); - if ( title.isEmpty() ) { + if ( title.isEmpty() || title == "Title (No HTML code allowed)" ) { // Use filename instead QFileInfo fi( filename_ ); title_ = fi.baseName();