From 22471b148d8877c3fd721c443792ad1e721d00f9 Mon Sep 17 00:00:00 2001 From: nils Date: Sun, 30 Oct 2011 23:04:42 +0000 Subject: added first idea of wizard git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@591 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- mainwindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mainwindow.cpp') diff --git a/mainwindow.cpp b/mainwindow.cpp index dd7c63e..38efe2b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -71,6 +71,16 @@ MainWindow::MainWindow() } edit->curTextPage()->setFocus(); this->setWindowTitle(qApp->applicationName()); + this->show(); + + // Show wizard, if the don't show wizard message box wasn't checked + // and keylist doesn't contain a private key + QSettings settings; + // if (settings.value("wizard/showWizard",true).toBool() && !mKeyList->containsPrivateKeys()) { + Wizard *wizard = new Wizard(mCtx,this); + wizard->show(); + wizard->setModal(true); + //} } void MainWindow::restoreSettings() -- cgit v1.2.3