Fix connects with QPointer

We need to call data() on the QPointer in a connect, otherwise
compilation fails on some compilers.
This commit is contained in:
Martin Gräßlin 2015-09-28 14:09:10 +02:00
parent af4809134c
commit 9f054bd8ad

View file

@ -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);
});
}