summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/Services/serviceref.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/src/Caelestia/Services/serviceref.hpp')
-rw-r--r--plugin/src/Caelestia/Services/serviceref.hpp3
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