Since m_pendingItemsToInsert is a list of pointers now (and not a list
of KFileItems, as in the 4.10 branch), we have to delete all pointers
when clearing or destroying the model.
I think that no review request is necessary for this small and obvious
change.
CCMAIL: emmanuelpescosta099@gmail.com
{
qDeleteAll(m_itemData);
qDeleteAll(m_filteredItems.values());
{
qDeleteAll(m_itemData);
qDeleteAll(m_filteredItems.values());
+ qDeleteAll(m_pendingItemsToInsert);
}
void KFileItemModel::loadDirectory(const KUrl& url)
}
void KFileItemModel::loadDirectory(const KUrl& url)
m_maximumUpdateIntervalTimer->stop();
m_resortAllItemsTimer->stop();
m_maximumUpdateIntervalTimer->stop();
m_resortAllItemsTimer->stop();
+
+ qDeleteAll(m_pendingItemsToInsert);
m_pendingItemsToInsert.clear();
const int removedCount = m_itemData.count();
m_pendingItemsToInsert.clear();
const int removedCount = m_itemData.count();