From: Manuel Nickschas Date: Mon, 10 Aug 2009 11:50:08 +0000 (+0200) Subject: Don't set application stylesheet if no Qt-specific sections are found X-Git-Tag: 0.5-rc1~75 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=2cf0c7d0b1fcbab239649c6b5cbdd54f362fb7a8 Don't set application stylesheet if no Qt-specific sections are found --- diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 37faa1c4..12c38892 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -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();