From 0a65bb3d7c9e8d197a22a6df662af6a222512175 Mon Sep 17 00:00:00 2001 From: nils Date: Thu, 19 Jan 2012 00:47:19 +0000 Subject: only restart app, when gpg4usb config import is checked in wizard git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@760 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- wizard.cpp | 10 ++++++---- 1 file 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; } -- cgit v1.2.3