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 | |
| parent | plugin: fix crashes (diff) | |
| download | caelestia-shell-e29275df0e78b369d457141688bea6463400934a.tar.gz caelestia-shell-e29275df0e78b369d457141688bea6463400934a.tar.bz2 caelestia-shell-e29275df0e78b369d457141688bea6463400934a.zip | |
plugin: delete -> deleteLater
| -rw-r--r-- | plugin/src/Caelestia/Models/filesystemmodel.cpp | 4 | ||||
| -rw-r--r-- | plugin/src/Caelestia/appdb.cpp | 2 |
2 files changed, 3 insertions, 3 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(); } diff --git a/plugin/src/Caelestia/appdb.cpp b/plugin/src/Caelestia/appdb.cpp index 71f7130..f55b4db 100644 --- a/plugin/src/Caelestia/appdb.cpp +++ b/plugin/src/Caelestia/appdb.cpp @@ -195,7 +195,7 @@ void AppDb::updateApps() { for (auto id : m_apps.keys()) { if (!newIds.contains(id)) { dirty = true; - delete m_apps.take(id); + m_apps.take(id)->deleteLater(); } } |