src/main.cpp

changeset 261
c4ad4e3c6839
parent 247
1a2ca515f683
child 271
d5ec224c1879
equal deleted inserted replaced
260:a3bab31c7e27 261:c4ad4e3c6839
38 38
39 // ============================================================================= 39 // =============================================================================
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
41 // ============================================================================= 41 // =============================================================================
42 int main (int argc, char* argv[]) { 42 int main (int argc, char* argv[]) {
43 const QApplication app (argc, argv);
44
43 // Load or create the configuration 45 // Load or create the configuration
44 if (!config::load ()) { 46 if (!config::load ()) {
45 printf ("Creating configuration file...\n"); 47 printf ("Creating configuration file...\n");
46 if (config::save ()) 48 if (config::save ())
47 printf ("Configuration file successfully created.\n"); 49 printf ("Configuration file successfully created.\n");
48 else 50 else
49 printf ("failed to create configuration file!\n"); 51 printf ("failed to create configuration file!\n");
50 } 52 }
51 53
52 const QApplication app (argc, argv);
53 LDPaths::initPaths (); 54 LDPaths::initPaths ();
54 55
55 initColors (); 56 initColors ();
56 initPartList (); 57 initPartList ();
57 58

mercurial