From 2cf0c7d0b1fcbab239649c6b5cbdd54f362fb7a8 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Mon, 10 Aug 2009 13:50:08 +0200 Subject: [PATCH] Don't set application stylesheet if no Qt-specific sections are found --- src/uisupport/uistyle.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.20.1