From 588aa13a23bfa6132ce8c3ddaa97b4d85bcc8a2c Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Fri, 27 Dec 2024 11:26:04 +0800 Subject: [PATCH] 1 --- src/dict/dsl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dict/dsl.cc b/src/dict/dsl.cc index cd11cf48b..31beddd3c 100644 --- a/src/dict/dsl.cc +++ b/src/dict/dsl.cc @@ -1608,9 +1608,9 @@ void DslResourceRequest::run() { n, dict.getResourceDir1() + resourceName, dict.getResourceDir2() + resourceName } ); qDebug( "found dsl resource name is %s", fp.c_str() ); try { - QMutexLocker _( &dataMutex ); if ( !fp.empty() ) { + QMutexLocker _( &dataMutex ); File::loadFromFile( fp, data ); } else if ( dict.resourceZip.isOpen() ) {