1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Use aApp application version instead of hardcoded value.

This commit is contained in:
srcejon 2024-04-10 01:34:06 +01:00
parent 5e79f06c0e
commit d09b3a2fb2

View File

@ -21,6 +21,7 @@
#include <QAbstractSocket>
#include <QTcpServer>
#include <QTcpSocket>
#include <QCoreApplication>
#include "webapi/webapiadapterinterface.h"
#include "webapi/webapiutils.h"
@ -212,7 +213,12 @@ void APRSWorker::recv()
if (!m_loggedIn)
{
// Log in with callsign and passcode
QString login = QString("user %1 pass %2 vers SDRangel 7.19.2%3\r\n").arg(m_settings.m_igateCallsign).arg(m_settings.m_igatePasscode).arg(m_settings.m_igateFilter.isEmpty() ? "" : QString(" filter %1").arg(m_settings.m_igateFilter));
QString login = QString("user %1 pass %2 vers SDRangel %3%4\r\n")
.arg(m_settings.m_igateCallsign)
.arg(m_settings.m_igatePasscode)
.arg(qApp->applicationVersion())
.arg(m_settings.m_igateFilter.isEmpty() ? "" : QString(" filter %1").arg(m_settings.m_igateFilter)
);
send(login.toLatin1(), login.length());
m_loggedIn = true;
if (m_msgQueueToFeature)