From 9f054bd8ad236b331f7230b9bca71205152a89de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 28 Sep 2015 14:09:10 +0200 Subject: [PATCH] Fix connects with QPointer We need to call data() on the QPointer in a connect, otherwise compilation fails on some compilers. --- shell_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell_client.cpp b/shell_client.cpp index 2784eb2f4f..766a3ef628 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -671,10 +671,10 @@ void ShellClient::installQtExtendedSurface(QtExtendedSurfaceInterface *surface) { m_qtExtendedSurface = surface; - connect(m_qtExtendedSurface, &QtExtendedSurfaceInterface::raiseRequested, this, [this]() { + connect(m_qtExtendedSurface.data(), &QtExtendedSurfaceInterface::raiseRequested, this, [this]() { workspace()->raiseClientRequest(this); }); - connect(m_qtExtendedSurface, &QtExtendedSurfaceInterface::lowerRequested, this, [this]() { + connect(m_qtExtendedSurface.data(), &QtExtendedSurfaceInterface::lowerRequested, this, [this]() { workspace()->lowerClientRequest(this); }); }