From 09fdfc2df0ae38afb6314d734afe2d3d00d57671 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 14 Jul 2015 10:45:15 +0200 Subject: wizard now works --- facetracknoir/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'facetracknoir/main.cpp') diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp index 326b40ec..eff35c0b 100644 --- a/facetracknoir/main.cpp +++ b/facetracknoir/main.cpp @@ -2,6 +2,7 @@ # include #endif +#include "wizard.h" #include "ui.h" #include "opentrack/options.hpp" using namespace options; @@ -60,6 +61,17 @@ int main(int argc, char** argv) QApplication::setAttribute(Qt::AA_X11InitThreads, true); QApplication app(argc, argv); + { + QSettings s(OPENTRACK_ORG); + if (!s.contains("wizard-run-once")) + { + s.setValue("wizard-run-once", true); + auto w = std::make_shared(); + w->show(); + app.exec(); + } + } + auto w = std::make_shared(); w->show(); -- cgit v1.2.3