Browse Source

Merge pull request #3176 from NaterGator/unixconsole

Reenable writing to stderr on *nix platforms for useful debugging
QGC4.4
Don Gagne 9 years ago
parent
commit
95878a1828
  1. 7
      src/main.cc

7
src/main.cc

@ -114,6 +114,12 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) @@ -114,6 +114,12 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
int main(int argc, char *argv[])
{
#ifdef Q_OS_UNIX
//FOrce writing to the console on UNIX/BSD devices
if (!qEnvironmentVariableIsSet("QT_LOGGING_TO_CONSOLE"))
qputenv("QT_LOGGING_TO_CONSOLE", "1");
#endif
// install the message handler
AppMessages::installHandler();
@ -150,7 +156,6 @@ int main(int argc, char *argv[]) @@ -150,7 +156,6 @@ int main(int argc, char *argv[])
break;
}
}
#endif
// The following calls to qRegisterMetaType are done to silence debug output which warns

Loading…
Cancel
Save