diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-17 00:00:04 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-17 00:00:04 +1000 |
| commit | e29275df0e78b369d457141688bea6463400934a (patch) | |
| tree | 10de6d41513e4a2ccf5ba2cde42c7ec1ffe5919a /plugin/src/Caelestia/Models | |
| parent | plugin: fix crashes (diff) | |
| download | caelestia-shell-e29275df0e78b369d457141688bea6463400934a.tar.gz caelestia-shell-e29275df0e78b369d457141688bea6463400934a.tar.bz2 caelestia-shell-e29275df0e78b369d457141688bea6463400934a.zip | |
plugin: delete -> deleteLater
Diffstat (limited to 'plugin/src/Caelestia/Models')
| -rw-r--r-- | plugin/src/Caelestia/Models/filesystemmodel.cpp | 4 |
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(); } |