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:
parent
af4809134c
commit
9f054bd8ad
1 changed files with 2 additions and 2 deletions
|
@ -671,10 +671,10 @@ void ShellClient::installQtExtendedSurface(QtExtendedSurfaceInterface *surface)
|
||||||
{
|
{
|
||||||
m_qtExtendedSurface = surface;
|
m_qtExtendedSurface = surface;
|
||||||
|
|
||||||
connect(m_qtExtendedSurface, &QtExtendedSurfaceInterface::raiseRequested, this, [this]() {
|
connect(m_qtExtendedSurface.data(), &QtExtendedSurfaceInterface::raiseRequested, this, [this]() {
|
||||||
workspace()->raiseClientRequest(this);
|
workspace()->raiseClientRequest(this);
|
||||||
});
|
});
|
||||||
connect(m_qtExtendedSurface, &QtExtendedSurfaceInterface::lowerRequested, this, [this]() {
|
connect(m_qtExtendedSurface.data(), &QtExtendedSurfaceInterface::lowerRequested, this, [this]() {
|
||||||
workspace()->lowerClientRequest(this);
|
workspace()->lowerClientRequest(this);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue