src/main.cc

changeset 848
68410477c8bb
parent 845
fec7023e91a7
child 850
a3d72b0e916d
equal deleted inserted replaced
847:274a7fac44fc 848:68410477c8bb
47 int main (int argc, char* argv[]) 47 int main (int argc, char* argv[])
48 { 48 {
49 QApplication app (argc, argv); 49 QApplication app (argc, argv);
50 app.setOrganizationName (APPNAME); 50 app.setOrganizationName (APPNAME);
51 app.setApplicationName (APPNAME); 51 app.setApplicationName (APPNAME);
52 initCrashCatcher(); 52 InitCrashCatcher();
53 Config::init(); 53 Config::Initialize();
54 54
55 // Load or create the configuration 55 // Load or create the configuration
56 if (not Config::load()) 56 if (not Config::Load())
57 { 57 {
58 print ("Creating configuration file...\n"); 58 print ("Creating configuration file...\n");
59 59
60 if (Config::save()) 60 if (Config::Save())
61 print ("Configuration file successfully created.\n"); 61 print ("Configuration file successfully created.\n");
62 else 62 else
63 critical ("Failed to create configuration file!\n"); 63 critical ("Failed to create configuration file!\n");
64 } 64 }
65 65
74 // them to the profile tab, it's the most important form to fill in. 74 // them to the profile tab, it's the most important form to fill in.
75 if (cfg::firstStart) 75 if (cfg::firstStart)
76 { 76 {
77 (new ConfigDialog (ConfigDialog::ProfileTab))->exec(); 77 (new ConfigDialog (ConfigDialog::ProfileTab))->exec();
78 cfg::firstStart = false; 78 cfg::firstStart = false;
79 Config::save(); 79 Config::Save();
80 } 80 }
81 81
82 return app.exec(); 82 return app.exec();
83 } 83 }

mercurial