Browse Source

main: Fix mac build when running Qt 5.15 (#9269)

QProces::execute(QString) was deprecated, QProcess::execute(QString, QStringList) should be used

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
QGC4.4
Patrick José Pereira 4 years ago committed by GitHub
parent
commit
853e04d1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/main.cc

2
src/main.cc

@ -250,7 +250,7 @@ int main(int argc, char *argv[]) @@ -250,7 +250,7 @@ int main(int argc, char *argv[])
#ifndef __ios__
// 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");
QProcess::execute("defaults", {"write org.qgroundcontrol.qgroundcontrol NSAppSleepDisabled -bool YES"});
#endif
#endif

Loading…
Cancel
Save