diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-05-24 15:18:31 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-05-24 15:18:31 +0200 |
commit | 8c605f96e2cf0a4f620433423a04a285f2b01e95 (patch) | |
tree | 7a05201b06b60e9bd3634a9a662e7c5457c0fe3a /dialog.cpp | |
parent | 8d81543d1c84e25e503a988c935778e34e002661 (diff) |
gen-key code
Diffstat (limited to 'dialog.cpp')
-rw-r--r-- | dialog.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -356,7 +356,9 @@ void Dialog::addGPGId(bool addGPGId) { ui->checkBoxAddGPGId->setChecked(addGPGId); } - +/** + * @brief Dialog::wizard + */ void Dialog::wizard() { //mainWindow->checkConfig(); @@ -373,8 +375,6 @@ void Dialog::wizard() QStringList names = mainWindow->getSecretKeys(); //qDebug() << names; if (QFile(gpg).exists() && names.empty()) { - QMessageBox::critical(this, tr("Secret key not found"), - tr("You can not encrypt :(")); // TODO have usable gpg id wizrd :P KeygenDialog d(this); d.exec(); @@ -391,4 +391,14 @@ void Dialog::wizard() //ui->gpgPath->setText(gpg); - } +} + +/** + * @brief Dialog::genKey + * @param QString batch + * @return status + */ +bool Dialog::genKey(QString batch) +{ + return mainWindow->genKey(batch); +} |