summaryrefslogtreecommitdiffstats
path: root/dialog.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2015-05-19 00:09:24 +0200
committerAnne Jan Brouwer <annejan@noprotocol.com>2015-05-19 00:09:24 +0200
commit8251873693a0bb7b38374990c6766c152f0626d1 (patch)
treee93ac9c3cda60f08b45068b46e3b0e3a74e08c17 /dialog.cpp
parentad44f5a9e8021e2688c074ea43f123d41e229def (diff)
start of streamlined wizard
Diffstat (limited to 'dialog.cpp')
-rw-r--r--dialog.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/dialog.cpp b/dialog.cpp
index 20068f79..bebce2e2 100644
--- a/dialog.cpp
+++ b/dialog.cpp
@@ -1,5 +1,7 @@
#include "dialog.h"
#include "ui_dialog.h"
+#include <QDebug>
+#include <QMessageBox>
/**
* @brief Dialog::Dialog
@@ -348,3 +350,16 @@ void Dialog::addGPGId(bool addGPGId)
{
ui->checkBoxAddGPGId->setChecked(addGPGId);
}
+
+void Dialog::wizard()
+{
+ // got GPG at-least ?
+ // TODO ^^
+
+ QString passStore = ui->storePath->text();
+ if(!QFile(passStore + ".gpg-id").exists()){
+ QMessageBox::critical(this, tr("Password store not initialised"),
+ tr("The folder %1 doesn't seem to be a password store or is not yet initialised.").arg(passStore));
+ }
+ // TODO REST
+ }