From c329430a7bd9a02b1f91dbd6f21af02c897f54e9 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Sun, 13 Feb 2022 20:57:39 +0800 Subject: [PATCH] fix:warning qt-style-st-lingoes.css the file was missing --- mainwindow.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cc b/mainwindow.cc index 807b2ee3..4fece565 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -1131,8 +1131,8 @@ void MainWindow::applyQtStyleSheet( QString const & displayStyle, QString const { // Load an additional stylesheet QFile builtInCssFile( QString( ":/qt-style-st-%1.css" ).arg( displayStyle ) ); - builtInCssFile.open( QFile::ReadOnly ); - css += builtInCssFile.readAll(); + if ( builtInCssFile.open( QFile::ReadOnly ) ) + css += builtInCssFile.readAll(); } // Try loading a style sheet if there's one