diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-14 10:45:15 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-14 10:45:15 +0200 |
commit | 09fdfc2df0ae38afb6314d734afe2d3d00d57671 (patch) | |
tree | b6ccc789236251c54a608497fd8bafc82861a840 /facetracknoir/main.cpp | |
parent | e72c2c3c239d075177c08b9d84eff4ad019f99b3 (diff) |
wizard now works
Diffstat (limited to 'facetracknoir/main.cpp')
-rw-r--r-- | facetracknoir/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 <stdlib.h> #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<Wizard>(); + w->show(); + app.exec(); + } + } + auto w = std::make_shared<MainWindow>(); w->show(); |