From 4334bffa25c8c700baae919c40dba83d68cdf1e2 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Wed, 5 Jun 2019 11:49:38 -0400 Subject: [PATCH] Added warning message for failed log to n3fjp --- mainwindow.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 46098ef..88cd6ca 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -6734,11 +6734,14 @@ void MainWindow::acceptQSO (QDateTime const& QSO_date_off, QString const& call, auto host = m_config.n3fjp_server_name(); auto port = m_config.n3fjp_server_port(); - if(m_n3fjpClient->sendNetworkMessage(host, port, data.toLocal8Bit(), 100)){ + if(m_n3fjpClient->sendNetworkMessage(host, port, data.toLocal8Bit(), true, 500)){ QTimer::singleShot(300, this, [this, host, port](){ - m_n3fjpClient->sendNetworkMessage(host, port, "", 100); - m_n3fjpClient->sendNetworkMessage(host, port, "\r\n", 100); + m_n3fjpClient->sendNetworkMessage(host, port, "", true, 100); + m_n3fjpClient->sendNetworkMessage(host, port, "\r\n", true, 100); }); + } else { + MessageBox::warning_message (this, tr ("Error sending log to N3FJP"), + tr ("Write failed for \"%1:%2\"").arg (host).arg(port)); } }