From 3c0c2607272a7a01a332bf990050cf3d8251b521 Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Tue, 5 Apr 2016 18:03:04 -0400 Subject: [PATCH] Install message handler on mobile too --- src/main.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cc b/src/main.cc index e8877d62c..d51a8b25b 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; -- 2.22.0