diff --git a/src/main.cc b/src/main.cc index e8877d62c34ab4c0b5f8e7f7953ce0f01858b09a..d51a8b25bc443998713252e63262ef462b9f0972 100644 --- a/src/main.cc +++ b/src/main.cc @@ -37,12 +37,12 @@ This file is part of the QGROUNDCONTROL project #include #include #include "QGCApplication.h" +#include "AppMessages.h" #define SINGLE_INSTANCE_PORT 14499 #ifndef __mobile__ #include "QGCSerialPortInfo.h" - #include "AppMessages.h" #endif #ifdef QT_DEBUG @@ -114,11 +114,10 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) int main(int argc, char *argv[]) { - -#ifndef __mobile__ // install the message handler AppMessages::installHandler(); +#ifndef __mobile__ //-- Test for another instance already running. If that's the case, we simply exit. QHostAddress host("127.0.0.1"); QUdpSocket socket;