actCancel remove (#3261)

This commit is contained in:
tooomm 2018-05-26 03:59:52 +02:00 committed by Zach H
parent 3a05d063af
commit 494dfc2f4b
14 changed files with 9 additions and 51 deletions

View file

@ -31,7 +31,7 @@ DlgForgotPasswordChallenge::DlgForgotPasswordChallenge(QWidget *parent) : QDialo
QMessageBox::warning(this, tr("Forgot Password Challenge Warning"),
tr("Oops, looks like something has gone wrong. Please restart the forgot password "
"process by using the forgot password button on the connection screen."));
actCancel();
reject();
}
hostLabel = new QLabel(tr("&Host:"));
@ -72,7 +72,7 @@ DlgForgotPasswordChallenge::DlgForgotPasswordChallenge(QWidget *parent) : QDialo
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
connect(buttonBox, SIGNAL(accepted()), this, SLOT(actOk()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(actCancel()));
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addLayout(grid);
@ -97,8 +97,3 @@ void DlgForgotPasswordChallenge::actOk()
accept();
}
void DlgForgotPasswordChallenge::actCancel()
{
reject();
}