Fix build against qt dev
This commit is contained in:
parent
467a1b3b49
commit
f054ac3d41
1 changed files with 5 additions and 2 deletions
|
@ -811,8 +811,11 @@ void UserActionsMenu::slotWindowOperation(QAction *action)
|
|||
}
|
||||
// need to delay performing the window operation as we need to have the
|
||||
// user actions menu closed before we destroy the decoration. Otherwise Qt crashes
|
||||
qRegisterMetaType<Options::WindowOperation>();
|
||||
QMetaObject::invokeMethod(workspace(), std::bind(&Workspace::performWindowOperation, workspace(), c, op), Qt::QueuedConnection);
|
||||
QMetaObject::invokeMethod(
|
||||
workspace(), [c, op]() {
|
||||
workspace()->performWindowOperation(c, op);
|
||||
},
|
||||
Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
//****************************************
|
||||
|
|
Loading…
Reference in a new issue