From f20d47f20cc11f0aa182daa3ee8d0975c298cc09 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Tue, 4 Apr 2023 01:27:25 +0300 Subject: [PATCH 17/17] Qt: Replace lambda expression We don't require their support from the compiler in branches older than S3_1. See osdn #47758 Signed-off-by: Marko Lindqvist --- client/gui-qt/menu.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/gui-qt/menu.cpp b/client/gui-qt/menu.cpp index da91b73e91..5e072fd0aa 100644 --- a/client/gui-qt/menu.cpp +++ b/client/gui-qt/menu.cpp @@ -1689,9 +1689,8 @@ void mr_menu::setup_menus() signal_help_mapper->setMapping(act, HELP_RULESET_ITEM); act = menu->addAction(Q_(HELP_TILESET_ITEM)); - QObject::connect(act, &QAction::triggered, [this]() { - slot_help(HELP_TILESET_ITEM); - }); + connect(act, SIGNAL(triggered()), signal_help_mapper, SLOT(map())); + signal_help_mapper->setMapping(act, HELP_TILESET_ITEM); act = menu->addAction(Q_(HELP_NATIONS_ITEM)); connect(act, SIGNAL(triggered()), signal_help_mapper, SLOT(map())); -- 2.39.2