mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Call columnWidthChanged with actual previous width
REVIEW: 129334
This commit is contained in:
parent
4322ef4114
commit
88805f7fad
|
@ -179,8 +179,8 @@ QList<QByteArray> KItemListWidget::visibleRoles() const
|
|||
|
||||
void KItemListWidget::setColumnWidth(const QByteArray& role, qreal width)
|
||||
{
|
||||
if (m_columnWidths.value(role) != width) {
|
||||
const qreal previousWidth = width;
|
||||
const qreal previousWidth = m_columnWidths.value(role);
|
||||
if (previousWidth != width) {
|
||||
m_columnWidths.insert(role, width);
|
||||
columnWidthChanged(role, width, previousWidth);
|
||||
update();
|
||||
|
|
Loading…
Reference in a new issue