From bf568da6de49c0a0eb4bad1aed550054cf8d2f35 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 12 May 2024 14:23:54 +0400 Subject: [PATCH] Remove redundant checks --- apps/launcher/maindialog.cpp | 2 +- apps/opencs/view/world/tablebottombox.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/launcher/maindialog.cpp b/apps/launcher/maindialog.cpp index 03667aaa26..71bda1c1ef 100644 --- a/apps/launcher/maindialog.cpp +++ b/apps/launcher/maindialog.cpp @@ -90,7 +90,7 @@ Launcher::MainDialog::~MainDialog() bool Launcher::MainDialog::event(QEvent* event) { // Apply style sheet again if style was changed - if (event->type() == QEvent::ThemeChange || event->type() == QEvent::PaletteChange) + if (event->type() == QEvent::PaletteChange) { if (toolBar != nullptr) toolBar->setStyleSheet(toolBarStyle); diff --git a/apps/opencs/view/world/tablebottombox.cpp b/apps/opencs/view/world/tablebottombox.cpp index 75fdee3461..396ba2de33 100644 --- a/apps/opencs/view/world/tablebottombox.cpp +++ b/apps/opencs/view/world/tablebottombox.cpp @@ -138,7 +138,7 @@ CSVWorld::TableBottomBox::TableBottomBox(const CreatorFactoryBase& creatorFactor bool CSVWorld::TableBottomBox::event(QEvent* event) { // Apply style sheet again if style was changed - if (event->type() == QEvent::ThemeChange || event->type() == QEvent::PaletteChange) + if (event->type() == QEvent::PaletteChange) { if (mStatusBar != nullptr) mStatusBar->setStyleSheet(statusBarStyle);