From f054ac3d41934e1995aec88f0000a5afb44c48b3 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Thu, 11 May 2023 13:05:24 +0300 Subject: [PATCH] Fix build against qt dev --- src/useractions.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/useractions.cpp b/src/useractions.cpp index 11ac4005ee..4cec797cb5 100644 --- a/src/useractions.cpp +++ b/src/useractions.cpp @@ -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(); - QMetaObject::invokeMethod(workspace(), std::bind(&Workspace::performWindowOperation, workspace(), c, op), Qt::QueuedConnection); + QMetaObject::invokeMethod( + workspace(), [c, op]() { + workspace()->performWindowOperation(c, op); + }, + Qt::QueuedConnection); } //****************************************