SetStylesheet: Remove comparaison to current stylesheet as now we have variables in stylesheet. This check is done in the Theme pref page now.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user