aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wizard.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/wizard.cpp b/wizard.cpp
index 557902c..bc163f6 100644
--- a/wizard.cpp
+++ b/wizard.cpp
@@ -168,11 +168,13 @@ bool ImportFromGpg4usbPage::importKeysFromGpg4usb()
return false;
}
- QSettings settings;
- settings.setValue("wizard/nextPage", this->nextId());
+ if (gpg4usbConfigCheckBox->isChecked()) {
+ QSettings settings;
+ settings.setValue("wizard/nextPage", this->nextId());
- // TODO: edit->maybesave?
- qApp->exit(RESTART_CODE);
+ // TODO: edit->maybesave?
+ qApp->exit(RESTART_CODE);
+ }
return true;
}