mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
KItemListHeaderWidget: drop unnecessary remove() call
If a key is not in the hash, there is nothing to be removed.
This commit is contained in:
parent
983273924d
commit
35add56ea4
|
@ -93,7 +93,6 @@ void KItemListHeaderWidget::setColumns(const QList<QByteArray>& roles)
|
|||
{
|
||||
foreach (const QByteArray& role, roles) {
|
||||
if (!m_columnWidths.contains(role)) {
|
||||
m_columnWidths.remove(role);
|
||||
m_preferredColumnWidths.remove(role);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue