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