1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Use better fallback for styleName() when proxy style is null

This commit is contained in:
David Rosca 2015-06-11 21:10:04 +02:00
parent a0b84a5cd3
commit f747ce3e9d

View File

@ -459,7 +459,7 @@ void MainApplication::setProxyStyle(ProxyStyle* style)
QString MainApplication::styleName() const QString MainApplication::styleName() const
{ {
return m_proxyStyle ? m_proxyStyle->baseStyle()->objectName() : QString(); return m_proxyStyle ? m_proxyStyle->baseStyle()->objectName() : style()->objectName();
} }
QString MainApplication::currentLanguageFile() const QString MainApplication::currentLanguageFile() const