summaryrefslogtreecommitdiff
path: root/plugin/src
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-17 00:00:04 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-17 00:00:04 +1000
commite29275df0e78b369d457141688bea6463400934a (patch)
tree10de6d41513e4a2ccf5ba2cde42c7ec1ffe5919a /plugin/src
parentplugin: fix crashes (diff)
downloadcaelestia-shell-e29275df0e78b369d457141688bea6463400934a.tar.gz
caelestia-shell-e29275df0e78b369d457141688bea6463400934a.tar.bz2
caelestia-shell-e29275df0e78b369d457141688bea6463400934a.zip
plugin: delete -> deleteLater
Diffstat (limited to 'plugin/src')
-rw-r--r--plugin/src/Caelestia/Models/filesystemmodel.cpp4
-rw-r--r--plugin/src/Caelestia/appdb.cpp2
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();
}
}