diff --git a/src/platform/qt/ActionMapper.h b/src/platform/qt/ActionMapper.h index f99290bd2..b71f1fbda 100644 --- a/src/platform/qt/ActionMapper.h +++ b/src/platform/qt/ActionMapper.h @@ -73,7 +73,9 @@ private: template Action* ActionMapper::addAction(const QString& visibleName, const QString& name, T* obj, V (T::*method)(), const QString& menu, const QKeySequence& shortcut) { - return addAction(visibleName, name, std::bind(method, obj), menu, shortcut); + return addAction(visibleName, name, [method, obj]() -> void { + (obj->*method)(); + }, menu, shortcut); } template