Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/plasmaquick/appletquickitem.cpp b/src/plasmaquick/appletquickitem.cpp
- index c49686a4d..16b2cb3bb 100644
- --- a/src/plasmaquick/appletquickitem.cpp
- +++ b/src/plasmaquick/appletquickitem.cpp
- @@ -739,7 +739,9 @@ void AppletQuickItem::setSwitchWidth(int width)
- }
- d->switchWidth = width;
- - d->compactRepresentationCheck();
- + if (d->qmlObject->mainComponent() && d->qmlObject->mainComponent()->status() == QQmlComponent::Ready) {
- + d->compactRepresentationCheck();
- + }
- emit switchWidthChanged(width);
- }
- @@ -755,7 +757,9 @@ void AppletQuickItem::setSwitchHeight(int height)
- }
- d->switchHeight = height;
- - d->compactRepresentationCheck();
- + if (d->qmlObject->mainComponent() && d->qmlObject->mainComponent()->status() == QQmlComponent::Ready) {
- + d->compactRepresentationCheck();
- + }
- emit switchHeightChanged(height);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement