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

Make sure ProxyStyle is created before using it.

This commit is contained in:
nowrep 2013-05-15 16:49:05 +02:00
parent 06323ee7b8
commit ac90002b6f
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ void TipLabel::resizeEvent(QResizeEvent* ev)
SqueezeLabelV1::resizeEvent(ev); SqueezeLabelV1::resizeEvent(ev);
// Oxygen is setting rounded corners only for top-level tooltips // 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)); setMask(QzTools::roundedRect(rect(), 4));
} }
} }

View File

@ -235,7 +235,7 @@ void TabPreview::resizeEvent(QResizeEvent* ev)
QFrame::resizeEvent(ev); QFrame::resizeEvent(ev);
// Oxygen is setting rounded corners only for top-level tooltips // 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)); setMask(QzTools::roundedRect(rect(), 4));
} }
} }