--- a/src/main.cpp Wed Aug 21 01:30:38 2013 +0300 +++ b/src/main.cpp Wed Aug 21 10:54:33 2013 +0300 @@ -29,6 +29,7 @@ #include "types.h" #include "primitives.h" #include "gldraw.h" +#include "configDialog.h" List<LDFile*> g_loadedFiles; ForgeWindow* g_win = null; @@ -40,6 +41,8 @@ const vertex g_origin (0.0f, 0.0f, 0.0f); const matrix g_identity ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); +cfg (Bool, firststart, true); + // ============================================================================= // ----------------------------------------------------------------------------- int main (int argc, char* argv[]) { @@ -64,11 +67,18 @@ loadLogoedStuds(); ForgeWindow* win = new ForgeWindow; + newFile(); + win->show(); - newFile(); + // If this is the first start, get the user to configuration. Especially point + // them to the profile tab, it's the most important form to fill in. + if (firststart) { + (new ConfigDialog (ConfigDialog::ProfileTab))->exec(); + firststart = false; + Config::save(); + } + loadPrimitives(); - - win->show(); return app.exec(); }