Repository: goldendict/goldendict (language: cpp)

Issue:
qt-style-st-lingoes.css the file was missing
as title.


Discussion / hints:
eef66a8f0f96f8867ad446ec3135704f1daf904f added a "lingoes" style. The very next commit 994eb998e95fceb0a294f59500fe6f2ebbe6bb1f renamed it to "lingoes-blue", including the rename from *qt-style-st-lingoes.css* to *qt-style-st-lingoes-blue.css*.

The absence of *qt-style-st-lingoes.css* might be intentional, if the default Qt settings are deliberately used in the style. Do you see any issues with the looks of the current "lingoes" style? Would copying *qt-style-st-lingoes-blue.css* to *qt-style-st-lingoes.css* fix them?
![image](https://user-images.githubusercontent.com/105986/153751862-5e6f48da-0b57-4303-add2-9753a029de06.png)
they are two different style.

> Would copying qt-style-st-lingoes-blue.css to qt-style-st-lingoes.css fix them?

would fix warning. did not know if have some side effect.


Fix patch:
diff --git a/mainwindow.cc b/mainwindow.cc
index 807b2ee3c..4fece5655 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


Test patch: