|
|
|
@ -84,9 +84,11 @@ int WindowsCrtReportHook(int reportType, char* message, int* returnValue)
@@ -84,9 +84,11 @@ int WindowsCrtReportHook(int reportType, char* message, int* returnValue)
|
|
|
|
|
int main(int argc, char *argv[]) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
#ifdef Q_OS_MAC |
|
|
|
|
// Prevent Apple's app nap from screwing us over
|
|
|
|
|
// tip: the domain can be cross-checked on the command line with <defaults domains>
|
|
|
|
|
QProcess::execute("defaults write org.qgroundcontrol.qgroundcontrol NSAppSleepDisabled -bool YES"); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
// install the message handler
|
|
|
|
|
#ifdef Q_OS_WIN |
|
|
|
|