mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +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
1 changed files with 0 additions and 1 deletions
|
@ -93,7 +93,6 @@ void KItemListHeaderWidget::setColumns(const QList<QByteArray>& roles)
|
||||||
{
|
{
|
||||||
foreach (const QByteArray& role, roles) {
|
foreach (const QByteArray& role, roles) {
|
||||||
if (!m_columnWidths.contains(role)) {
|
if (!m_columnWidths.contains(role)) {
|
||||||
m_columnWidths.remove(role);
|
|
||||||
m_preferredColumnWidths.remove(role);
|
m_preferredColumnWidths.remove(role);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue