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 |