summaryrefslogtreecommitdiffstats
path: root/dialog.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2015-05-24 15:18:31 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2015-05-24 15:18:31 +0200
commit8c605f96e2cf0a4f620433423a04a285f2b01e95 (patch)
tree7a05201b06b60e9bd3634a9a662e7c5457c0fe3a /dialog.cpp
parent8d81543d1c84e25e503a988c935778e34e002661 (diff)
gen-key code
Diffstat (limited to 'dialog.cpp')
-rw-r--r--dialog.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/dialog.cpp b/dialog.cpp
index 558e5e33..84d31b1e 100644
--- a/dialog.cpp
+++ b/dialog.cpp
@@ -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);
+}