diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-16 23:58:44 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-16 23:58:44 +1000 |
| commit | 1984458565462f0f7d54266021e7f1977bc4b302 (patch) | |
| tree | cfa2c7cbd6630acc8caf4b8740d7446abd2f0cd3 /plugin/src/Caelestia/Services/serviceref.hpp | |
| parent | utilities/toggles: add dnd (diff) | |
| download | caelestia-shell-1984458565462f0f7d54266021e7f1977bc4b302.tar.gz caelestia-shell-1984458565462f0f7d54266021e7f1977bc4b302.tar.bz2 caelestia-shell-1984458565462f0f7d54266021e7f1977bc4b302.zip | |
plugin: fix crashes
Fixes #629
Diffstat (limited to 'plugin/src/Caelestia/Services/serviceref.hpp')
| -rw-r--r-- | plugin/src/Caelestia/Services/serviceref.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/src/Caelestia/Services/serviceref.hpp b/plugin/src/Caelestia/Services/serviceref.hpp index 072419e..1d2881d 100644 --- a/plugin/src/Caelestia/Services/serviceref.hpp +++ b/plugin/src/Caelestia/Services/serviceref.hpp @@ -1,6 +1,7 @@ #pragma once #include "service.hpp" +#include <qpointer.h> #include <qqmlintegration.h> namespace caelestia { @@ -22,7 +23,7 @@ signals: void serviceChanged(); private: - Service* m_service; + QPointer<Service> m_service; }; } // namespace caelestia |