QHeaderView - remove stupid if

Not only is this extra if unnecesary - it is confusing.
oldSize is different from size.
(otherwise we would have returned less than 10 lines above)

Change-Id: Ie911414f679df2be7b5c8bc2670225d46e986b32
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
Thorbjørn Lund Martsum 2011-12-15 07:32:15 +01:00 committed by Qt by Nokia
parent 81a825ea9b
commit f405a57fa1

View File

@ -884,8 +884,7 @@ void QHeaderView::resizeSection(int logical, int size)
if (stretchLastSection() && visual == d->lastVisibleVisualIndex())
d->lastSectionSize = size;
if (size != oldSize)
d->createSectionSpan(visual, visual, size, d->headerSectionResizeMode(visual));
d->createSectionSpan(visual, visual, size, d->headerSectionResizeMode(visual));
if (!updatesEnabled()) {
emit sectionResized(logical, oldSize, size);