summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/Models/filesystemmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/src/Caelestia/Models/filesystemmodel.cpp')
-rw-r--r--plugin/src/Caelestia/Models/filesystemmodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/src/Caelestia/Models/filesystemmodel.cpp b/plugin/src/Caelestia/Models/filesystemmodel.cpp
index eb30fa8..b7889f0 100644
--- a/plugin/src/Caelestia/Models/filesystemmodel.cpp
+++ b/plugin/src/Caelestia/Models/filesystemmodel.cpp
@@ -393,7 +393,7 @@ void FileSystemModel::applyChanges(const QSet<QString>& removedPaths, const QSet
beginRemoveRows(QModelIndex(), end, start);
for (int i = start; i >= end; --i) {
emit removed(m_entries[i]->path());
- delete m_entries.takeAt(i);
+ m_entries.takeAt(i)->deleteLater();
}
endRemoveRows();
@@ -405,7 +405,7 @@ void FileSystemModel::applyChanges(const QSet<QString>& removedPaths, const QSet
beginRemoveRows(QModelIndex(), end, start);
for (int i = start; i >= end; --i) {
emit removed(m_entries[i]->path());
- delete m_entries.takeAt(i);
+ m_entries.takeAt(i)->deleteLater();
}
endRemoveRows();
}