From 3780c1baab8562e15eade1c1be25ccebd0e70814 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Wed, 2 Feb 2022 14:47:24 +0800 Subject: (ui): Repair and tidy the signal and slot docking 1. Use more modern ways. 2. Repair partial docking. --- src/ui/mail/RecipientsPicker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/mail/RecipientsPicker.cpp') diff --git a/src/ui/mail/RecipientsPicker.cpp b/src/ui/mail/RecipientsPicker.cpp index 88e823a9..d6b8bcc5 100644 --- a/src/ui/mail/RecipientsPicker.cpp +++ b/src/ui/mail/RecipientsPicker.cpp @@ -34,7 +34,7 @@ GpgFrontend::UI::RecipientsPicker::RecipientsPicker( const GpgFrontend::KeyIdArgsListPtr& current_key_ids, QWidget* parent) : QDialog(parent) { auto confirm_button = new QPushButton(_("Confirm")); - connect(confirm_button, SIGNAL(clicked(bool)), this, SLOT(accept())); + connect(confirm_button,&QPushButton::clicked, this, &RecipientsPicker::accept); // Setup KeyList key_list_ = new KeyList(KeyMenuAbility::NONE, this); -- cgit v1.2.3