Skip to content

Commit

Permalink
fixed possible crash on qml applications (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
trialuser02 committed Sep 7, 2023
1 parent 4bf8dee commit d56a7eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qt6ct-qtplugin/qt6ctplatformtheme.cpp
Expand Up @@ -94,8 +94,7 @@ QPlatformDialogHelper *Qt6CTPlatformTheme::createPlatformDialogHelper(DialogType

const QPalette *Qt6CTPlatformTheme::palette(QPlatformTheme::Palette type) const
{
Q_UNUSED(type);
return (m_usePalette && m_palette) ? m_palette : nullptr;
return (m_usePalette && m_palette) ? m_palette : QGenericUnixTheme::palette(type);
}

const QFont *Qt6CTPlatformTheme::font(QPlatformTheme::Font type) const
Expand Down

0 comments on commit d56a7eb

Please sign in to comment.