From 1f1e489cf3f539cce0b7f43b45d413098b56af4c Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Thu, 10 Jun 2021 09:35:29 +0100 Subject: [PATCH] Third attempt to get messages from server! --- wfmain.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wfmain.cpp b/wfmain.cpp index 05e39bc..0a661e1 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -358,6 +358,10 @@ void wfmain::makeRig() connect(rig, SIGNAL(haveSerialPortError(QString, QString)), this, SLOT(receiveSerialPortError(QString, QString))); connect(rig, SIGNAL(haveStatusUpdate(QString)), this, SLOT(receiveStatusUpdate(QString))); + if (!prefs.enableLAN && udp != Q_NULLPTR) { + connect(udp, SIGNAL(haveNetworkStatus(QString)), rig, SLOT(handleStatusUpdate(QString))); + } + // Rig comm setup: connect(this, SIGNAL(sendCommSetup(unsigned char, udpPreferences, audioSetup, audioSetup, QString)), rig, SLOT(commSetup(unsigned char, udpPreferences, audioSetup, audioSetup, QString))); connect(this, SIGNAL(sendCommSetup(unsigned char, QString, quint32,QString)), rig, SLOT(commSetup(unsigned char, QString, quint32,QString))); @@ -758,9 +762,6 @@ void wfmain::setServerToPrefs() connect(this, SIGNAL(initServer()), udp, SLOT(init())); connect(serverThread, SIGNAL(finished()), udp, SLOT(deleteLater())); - if (!prefs.enableLAN) { - connect(udp, SIGNAL(haveNetworkStatus(QString)), rig, SLOT(handleStatusUpdate(QString))); - } serverThread->start();