Browse Source

Add missing OS-guard

QGC4.4
Lorenz Meier 11 years ago
parent
commit
6128464bc9
  1. 2
      src/main.cc

2
src/main.cc

@ -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

Loading…
Cancel
Save