summaryrefslogtreecommitdiffstats
path: root/src/gui/platform/unix/qdesktopunixservices_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/platform/unix/qdesktopunixservices_p.h')
-rw-r--r--src/gui/platform/unix/qdesktopunixservices_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/platform/unix/qdesktopunixservices_p.h b/src/gui/platform/unix/qdesktopunixservices_p.h
index f52dc35bbe2..903bd6e6510 100644
--- a/src/gui/platform/unix/qdesktopunixservices_p.h
+++ b/src/gui/platform/unix/qdesktopunixservices_p.h
@@ -16,11 +16,14 @@
//
#include <qpa/qplatformservices.h>
+
+#include <QtCore/qpointer.h>
#include <QtCore/QString>
#include <QtCore/private/qglobal_p.h>
QT_BEGIN_NAMESPACE
+class QDBusPendingCallWatcher;
class QWindow;
class Q_GUI_EXPORT QDesktopUnixServices : public QPlatformServices
@@ -46,7 +49,7 @@ private:
QString m_webBrowser;
QString m_documentLauncher;
#if QT_CONFIG(dbus)
- QMetaObject::Connection m_watcherConnection;
+ QPointer<QDBusPendingCallWatcher> m_watcher = nullptr;
#endif
bool m_hasScreenshotPortalWithColorPicking = false;
};