Plasma Wallpaper: Fix targetSize updating logic.
As discussed with Aaron a few weeks ago on IRC.
This commit is contained in:
parent
f7393b34a5
commit
c9529c5563
@ -292,10 +292,9 @@ bool Wallpaper::isInitialized() const
|
||||
|
||||
void Wallpaper::setBoundingRect(const QRectF &boundingRect)
|
||||
{
|
||||
QSizeF oldBoundingRectSize = d->boundingRect.size();
|
||||
d->boundingRect = boundingRect;
|
||||
|
||||
if (!d->targetSize.isValid() || d->targetSize == oldBoundingRectSize) {
|
||||
if (d->targetSize != boundingRect.size()) {
|
||||
d->targetSize = boundingRect.size();
|
||||
emit renderHintsChanged();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user