Skip to content

Commit

Permalink
don't allways wizard when using config
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Jan Brouwer committed Jul 30, 2015
1 parent 6ce38bb commit 7a8236a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ void MainWindow::config() {
d->useSymbols(useSymbols);
d->setPasswordLength(passwordLength);
d->setPasswordChars(passwordChars);
d->wizard(); // does shit

if (startupPhase) {
d->wizard(); // does shit
}
if (d->exec()) {
if (d->result() == QDialog::Accepted) {
passExecutable = d->getPassPath();
Expand Down Expand Up @@ -1047,7 +1048,7 @@ void MainWindow::on_editButton_clicked()
*/
QList<UserInfo> MainWindow::listKeys(QString keystring, bool secret)
{
waitFor(20);
waitFor(5);
QList<UserInfo> users;
currentAction = GPG_INTERNAL;
QString listopt = secret ? "--list-secret-keys " : "--list-keys ";
Expand Down Expand Up @@ -1479,7 +1480,7 @@ void MainWindow::editPassword()
QString MainWindow::generatePassword() {
QString passwd;
if (usePwgen) {
waitFor(10);
waitFor(2);
QString args = (useSymbols?"--symbols -1 ":"-1 ") + QString::number(passwordLength);
currentAction = PWGEN;
executeWrapper(pwgenExecutable, args);
Expand Down

0 comments on commit 7a8236a

Please sign in to comment.