Don't set application stylesheet if no Qt-specific sections are found
[quassel.git] / src / uisupport / uistyle.cpp
index 37faa1c..12c3889 100644 (file)
@@ -112,7 +112,9 @@ void UiStyle::loadStyleSheet() {
     }
     _listItemFormats = parser.listItemFormats();
 
-    qApp->setStyleSheet(styleSheet); // pass the remaining sections to the application
+    styleSheet = styleSheet.trimmed();
+    if(!styleSheet.isEmpty())
+      qApp->setStyleSheet(styleSheet); // pass the remaining sections to the application
   }
 
   emit changed();