mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
Make sure ProxyStyle is created before using it.
This commit is contained in:
parent
06323ee7b8
commit
ac90002b6f
@ -67,7 +67,7 @@ void TipLabel::resizeEvent(QResizeEvent* ev)
|
||||
SqueezeLabelV1::resizeEvent(ev);
|
||||
|
||||
// Oxygen is setting rounded corners only for top-level tooltips
|
||||
if (mApp->proxyStyle()->name() == QLatin1String("oxygen")) {
|
||||
if (mApp->proxyStyle() && mApp->proxyStyle()->name() == QLatin1String("oxygen")) {
|
||||
setMask(QzTools::roundedRect(rect(), 4));
|
||||
}
|
||||
}
|
||||
|
@ -235,7 +235,7 @@ void TabPreview::resizeEvent(QResizeEvent* ev)
|
||||
QFrame::resizeEvent(ev);
|
||||
|
||||
// Oxygen is setting rounded corners only for top-level tooltips
|
||||
if (mApp->proxyStyle()->name() == QLatin1String("oxygen")) {
|
||||
if (mApp->proxyStyle() && mApp->proxyStyle()->name() == QLatin1String("oxygen")) {
|
||||
setMask(QzTools::roundedRect(rect(), 4));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user