diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-24 12:17:26 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-24 12:17:26 +1000 |
| commit | e294adf96adcc5c5897c74b3af270ff9242bde08 (patch) | |
| tree | 0e4f379b456bbb714128452d66a2c1f5d56a51a8 /plugin/src/Caelestia/appdb.cpp | |
| parent | plugin: add image analyser (diff) | |
| download | caelestia-shell-e294adf96adcc5c5897c74b3af270ff9242bde08.tar.gz caelestia-shell-e294adf96adcc5c5897c74b3af270ff9242bde08.tar.bz2 caelestia-shell-e294adf96adcc5c5897c74b3af270ff9242bde08.zip | |
plugin/fsm: fix crash
Fixes #663
Fixes #681
Fixes #647
also build dev plugin with RelWithDebInfo
Diffstat (limited to 'plugin/src/Caelestia/appdb.cpp')
| -rw-r--r-- | plugin/src/Caelestia/appdb.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/src/Caelestia/appdb.cpp b/plugin/src/Caelestia/appdb.cpp index 1fa2d77..72b346f 100644 --- a/plugin/src/Caelestia/appdb.cpp +++ b/plugin/src/Caelestia/appdb.cpp @@ -207,18 +207,16 @@ void AppDb::updateApps() { newIds.insert(entry->property("id").toString()); } - QList<AppEntry*> toDelete; for (auto it = m_apps.keyBegin(); it != m_apps.keyEnd(); ++it) { const auto& id = *it; if (!newIds.contains(id)) { dirty = true; - toDelete << m_apps.take(id); + m_apps.take(id)->deleteLater(); } } if (dirty) { emit appsChanged(); - qDeleteAll(toDelete); } } |