From 3c513e2c531304cee8b41043036d00a38c381653 Mon Sep 17 00:00:00 2001 From: bodwok Date: Fri, 3 Jul 2020 18:13:08 +0300 Subject: [PATCH] refactor: connection to parent method in toxuri.cpp --- src/net/toxuri.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/net/toxuri.cpp b/src/net/toxuri.cpp index 9bf0bb28b..f95e0ab66 100644 --- a/src/net/toxuri.cpp +++ b/src/net/toxuri.cpp @@ -20,7 +20,6 @@ #include "src/net/toxuri.h" #include "src/core/core.h" #include "src/widget/gui.h" -#include "src/widget/tool/friendrequestdialog.h" #include #include #include @@ -100,8 +99,8 @@ ToxURIDialog::ToxURIDialog(QWidget* parent, Core& _core) buttonBox->addButton(tr("Send", "Send a friend request"), QDialogButtonBox::AcceptRole); buttonBox->addButton(tr("Cancel", "Don't send a friend request"), QDialogButtonBox::RejectRole); - connect(buttonBox, &QDialogButtonBox::accepted, this, &FriendRequestDialog::accept); - connect(buttonBox, &QDialogButtonBox::rejected, this, &FriendRequestDialog::reject); + connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); + connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); QVBoxLayout* layout = new QVBoxLayout(this);