Plasma Wallpaper: Fix targetSize updating logic.

As discussed with Aaron a few weeks ago on IRC.
This commit is contained in:
Andreas Hartmetz 2011-05-09 14:17:06 +02:00
parent f7393b34a5
commit c9529c5563

View File

@ -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();
}