Don't set application stylesheet if no Qt-specific sections are found
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 10 Aug 2009 11:50:08 +0000 (13:50 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 10 Aug 2009 11:50:18 +0000 (13:50 +0200)
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();