summaryrefslogtreecommitdiff
path: root/src/listeners/requesttradelistener.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/listeners/requesttradelistener.h')
-rw-r--r--src/listeners/requesttradelistener.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/listeners/requesttradelistener.h b/src/listeners/requesttradelistener.h
index 6e94b96fa..576e22cfb 100644
--- a/src/listeners/requesttradelistener.h
+++ b/src/listeners/requesttradelistener.h
@@ -39,14 +39,15 @@ extern ConfirmDialog *confirmDlg;
*/
struct RequestTradeListener final : public ActionListener
{
- void action(const ActionEvent &event) override final
- {
- confirmDlg = nullptr;
- const std::string &eventId = event.getId();
- if (eventId == "ignore")
- player_relations.ignoreTrade(tradePartnerName);
- tradeHandler->respond(eventId == "yes");
- }
+ public:
+ void action(const ActionEvent &event) override final
+ {
+ confirmDlg = nullptr;
+ const std::string &eventId = event.getId();
+ if (eventId == "ignore")
+ player_relations.ignoreTrade(tradePartnerName);
+ tradeHandler->respond(eventId == "yes");
+ }
};
#endif // LISTENERS_REQUESTTRADELISTENER_H