equal
deleted
inserted
replaced
92 else if (calculateEaster(date.year()) == date) |
92 else if (calculateEaster(date.year()) == date) |
93 season = SEASON_EASTER; |
93 season = SEASON_EASTER; |
94 else |
94 else |
95 season = SEASON_NONE; |
95 season = SEASON_NONE; |
96 } |
96 } |
97 #ifndef _WIN32 |
97 |
98 void terminateFrontend(int signal) |
|
99 { |
|
100 Q_UNUSED(signal); |
|
101 |
|
102 QCoreApplication::exit(0); |
|
103 } |
|
104 #endif |
|
105 |
98 |
106 bool checkForDir(const QString & dir) |
99 bool checkForDir(const QString & dir) |
107 { |
100 { |
108 QDir tmpdir(dir); |
101 QDir tmpdir(dir); |
109 if (!tmpdir.exists()) |
102 if (!tmpdir.exists()) |
143 // Since we're calling this first, closeResources() will be the last thing called after main() returns. |
136 // Since we're calling this first, closeResources() will be the last thing called after main() returns. |
144 atexit(closeResources); |
137 atexit(closeResources); |
145 |
138 |
146 #ifdef __APPLE__ |
139 #ifdef __APPLE__ |
147 cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X. |
140 cocoaInit = new CocoaInitializer(); // Creates the autoreleasepool preventing cocoa object leaks on OS X. |
148 #endif |
|
149 |
|
150 #ifndef _WIN32 |
|
151 signal(SIGINT, &terminateFrontend); |
|
152 #endif |
141 #endif |
153 |
142 |
154 HWApplication app(argc, argv); |
143 HWApplication app(argc, argv); |
155 |
144 |
156 QLabel *splash = NULL; |
145 QLabel *splash = NULL; |