From b110ce7fbbf050fd73b8525828cda679d47303f8 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Wed, 5 Oct 2022 14:26:42 +0100 Subject: [PATCH] Bit of tidying --- cluster.cpp | 7 +------ wfmain.cpp | 4 +--- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/cluster.cpp b/cluster.cpp index ede330b..a22965e 100644 --- a/cluster.cpp +++ b/cluster.cpp @@ -115,7 +115,6 @@ void dxClusterClient::udpDataReceived() data->timestamp = QDateTime::fromString(spot.firstChildElement("timestamp").text(),"yyyy-MM-dd hh:mm:ss"); data->mode = spot.firstChildElement("mode").text(); data->comment = spot.firstChildElement("comment").text(); - //emit addSpot(data); #ifdef USESQL database db = database(); @@ -282,12 +281,8 @@ void dxClusterClient::updateSpots() if (spot.value()->frequency > lowFreq && spot.value()->frequency < highFreq) { spots.append(**spot); - ++spot; - } - else - { - ++spot; } + ++spot; } #endif diff --git a/wfmain.cpp b/wfmain.cpp index f1be150..3e3e978 100644 --- a/wfmain.cpp +++ b/wfmain.cpp @@ -7651,9 +7651,7 @@ void wfmain::receiveSpots(QList spots) if (!found) { - spotData* sp = new spotData(); - sp->dxcall = s.dxcall; - sp->frequency = s.frequency; + spotData* sp = new spotData(s); //qDebug(logCluster()) << "ADD:" << sp->dxcall; sp->current = true;