diff --git a/src/main.cc b/src/main.cc index 4b835a20801fd539737d5ccfa8b93e9d469f1248..e425ba62dd08d5b44421fddd02319b7a1ae0458e 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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 QProcess::execute("defaults write org.qgroundcontrol.qgroundcontrol NSAppSleepDisabled -bool YES"); +#endif // install the message handler #ifdef Q_OS_WIN