X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=35d3162d158e24e31c3f73c89c0d7882dac2f786;hp=4964692b57c40c7394902224889bf5e4e7f1f61a;hb=4c740970699031a20315c7f5666d1f88c439f739;hpb=064dcac965d1e724a0434683685a24ec7e6ba855 diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 4964692b..35d3162d 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -77,15 +77,14 @@ void UiStyle::loadStyleSheet() { styleSheet += loadStyleSheet("file:///" + s.value("CustomStyleSheetPath").toString(), true); styleSheet += loadStyleSheet("file:///" + Quassel::optionValue("qss"), true); - if(styleSheet.isEmpty()) - return; + if(!styleSheet.isEmpty()) { + QssParser parser; + parser.processStyleSheet(styleSheet); + QApplication::setPalette(parser.palette()); + _formatCache = parser.formats(); - QssParser parser; - parser.processStyleSheet(styleSheet); - QApplication::setPalette(parser.palette()); - _formatCache = parser.formats(); - - qApp->setStyleSheet(styleSheet); // pass the remaining sections to the application + qApp->setStyleSheet(styleSheet); // pass the remaining sections to the application + } emit changed(); }