From 71d06363c64ffd698779935f9e07c85264acd8b2 Mon Sep 17 00:00:00 2001 From: Paddle Date: Mon, 14 Aug 2023 08:42:46 +0200 Subject: [PATCH] SetStylesheet: Remove comparaison to current stylesheet as now we have variables in stylesheet. This check is done in the Theme pref page now. --- src/Gui/Application.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index 188712d585..8e960e797a 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -2460,11 +2460,9 @@ void Application::setStyleSheet(const QString& qssFile, bool tiledBackground) qApp->setPalette(newPal); } - - QString current = mw->property("fc_currentStyleSheet").toString(); mw->setProperty("fc_currentStyleSheet", qssFile); - if (!qssFile.isEmpty() && current != qssFile) { + if (!qssFile.isEmpty()) { // Search for stylesheet in user-defined search paths. // For qss they are set-up in runApplication() with the prefix "qss" QString prefix(QLatin1String("qss:")); @@ -2509,8 +2507,7 @@ void Application::setStyleSheet(const QString& qssFile, bool tiledBackground) } } } - - if (qssFile.isEmpty()) { + else { if (tiledBackground) { qApp->setStyleSheet(QString()); ActionStyleEvent e(ActionStyleEvent::Restore);