mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-10 06:41:37 +00:00
Remove redundant checks
This commit is contained in:
parent
0262b33067
commit
bf568da6de
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ Launcher::MainDialog::~MainDialog()
|
||||||
bool Launcher::MainDialog::event(QEvent* event)
|
bool Launcher::MainDialog::event(QEvent* event)
|
||||||
{
|
{
|
||||||
// Apply style sheet again if style was changed
|
// 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)
|
if (toolBar != nullptr)
|
||||||
toolBar->setStyleSheet(toolBarStyle);
|
toolBar->setStyleSheet(toolBarStyle);
|
||||||
|
|
|
@ -138,7 +138,7 @@ CSVWorld::TableBottomBox::TableBottomBox(const CreatorFactoryBase& creatorFactor
|
||||||
bool CSVWorld::TableBottomBox::event(QEvent* event)
|
bool CSVWorld::TableBottomBox::event(QEvent* event)
|
||||||
{
|
{
|
||||||
// Apply style sheet again if style was changed
|
// 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)
|
if (mStatusBar != nullptr)
|
||||||
mStatusBar->setStyleSheet(statusBarStyle);
|
mStatusBar->setStyleSheet(statusBarStyle);
|
||||||
|
|
Loading…
Reference in a new issue