homepage - add friend from cert file button

This commit is contained in:
RetroPooh 2017-03-04 00:12:36 +03:00
parent cb960a358d
commit d6870b45e9
4 changed files with 36 additions and 1 deletions

View file

@ -52,7 +52,8 @@ HomePage::HomePage(QWidget *parent) :
updateOwnCert();
connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addFriend()));
connect(ui->LoadCertFileButton, SIGNAL(clicked()), this, SLOT(loadCert()));
QAction *CopyAction = new QAction(QIcon(),tr("Copy your Cert to Clipboard"), this);
connect(CopyAction, SIGNAL(triggered()), this, SLOT(copyCert()));
@ -187,6 +188,14 @@ void HomePage::webMail()
connwiz.exec ();
}
void HomePage::loadCert()
{
ConnectFriendWizard connwiz (this);
connwiz.setStartId(ConnectFriendWizard::Page_Cert);
connwiz.exec ();
}
void HomePage::runStartWizard()
{
QuickStartWizard(this).exec();