When changing geometry always update

This commit is contained in:
David Edmundson 2014-05-21 15:34:49 +02:00
parent bb10131fd4
commit 394e29fa34

View File

@ -333,12 +333,12 @@ void IconItem::geometryChanged(const QRectF &newGeometry,
const QRectF &oldGeometry)
{
if (newGeometry.size() != oldGeometry.size()) {
m_sizechanged = true;
update();
if (newGeometry.width() > 0 && newGeometry.height() > 0) {
m_sizeChanged = true;
if (!m_loadPixmapTimer.isActive()) {
m_loadPixmapTimer.start();
}
update();
}
}