From c1de0bc28c5e1d03ad6d5a807288283598d31ed1 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Sun, 14 Mar 2021 12:13:20 +0100 Subject: [PATCH] workaround for clang compilation --- rpcs3/rpcs3qt/game_list_frame.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 9a07855be7..ce4226858c 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -1115,12 +1115,12 @@ void game_list_frame::ShowContextMenu(const QPoint &pos) if (QFile::exists(icon_path)) { actions[static_cast(icon_action::add)]->setVisible(false); - connect(actions[static_cast(icon_action::replace)], &QAction::triggered, this, [handle_icon, icon_path, type] { handle_icon(icon_path, icon_action::replace, type); }); - connect(actions[static_cast(icon_action::remove)], &QAction::triggered, this, [handle_icon, icon_path, type] { handle_icon(icon_path, icon_action::remove, type); }); + connect(actions[static_cast(icon_action::replace)], &QAction::triggered, this, [handle_icon, icon_path, t = type] { handle_icon(icon_path, icon_action::replace, t); }); + connect(actions[static_cast(icon_action::remove)], &QAction::triggered, this, [handle_icon, icon_path, t = type] { handle_icon(icon_path, icon_action::remove, t); }); } else { - connect(actions[static_cast(icon_action::add)], &QAction::triggered, this, [handle_icon, icon_path, type] { handle_icon(icon_path, icon_action::add, type); }); + connect(actions[static_cast(icon_action::add)], &QAction::triggered, this, [handle_icon, icon_path, t = type] { handle_icon(icon_path, icon_action::add, t); }); actions[static_cast(icon_action::replace)]->setVisible(false); actions[static_cast(icon_action::remove)]->setEnabled(false); }