Commit 3c0c2607 authored by Nate Weibley's avatar Nate Weibley

Install message handler on mobile too

parent bc19757e
...@@ -37,12 +37,12 @@ This file is part of the QGROUNDCONTROL project ...@@ -37,12 +37,12 @@ This file is part of the QGROUNDCONTROL project
#include <QtPlugin> #include <QtPlugin>
#include <QStringListModel> #include <QStringListModel>
#include "QGCApplication.h" #include "QGCApplication.h"
#include "AppMessages.h"
#define SINGLE_INSTANCE_PORT 14499 #define SINGLE_INSTANCE_PORT 14499
#ifndef __mobile__ #ifndef __mobile__
#include "QGCSerialPortInfo.h" #include "QGCSerialPortInfo.h"
#include "AppMessages.h"
#endif #endif
#ifdef QT_DEBUG #ifdef QT_DEBUG
...@@ -114,11 +114,10 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved) ...@@ -114,11 +114,10 @@ jint JNI_OnLoad(JavaVM* vm, void* reserved)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#ifndef __mobile__
// install the message handler // install the message handler
AppMessages::installHandler(); AppMessages::installHandler();
#ifndef __mobile__
//-- Test for another instance already running. If that's the case, we simply exit. //-- Test for another instance already running. If that's the case, we simply exit.
QHostAddress host("127.0.0.1"); QHostAddress host("127.0.0.1");
QUdpSocket socket; QUdpSocket socket;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment