From f323a5ed3533bea6790253202590135a8606b688 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 9 Mar 2018 13:19:41 +0000 Subject: [PATCH] Add DX grid to wsjtx_status.txt if available Thanks to Mike W9MDB for this patch which allows applications like PstRotatorAZ to make use of this file. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8546 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 763cfb737..95c4f91e7 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1958,9 +1958,11 @@ void MainWindow::statusChanged() QFile f {m_config.temp_dir ().absoluteFilePath ("wsjtx_status.txt")}; if(f.open(QFile::WriteOnly | QIODevice::Text)) { QTextStream out(&f); + QString tmpGrid = m_hisGrid; + if (!tmpGrid.size ()) tmpGrid="n/a"; // Not Available out << qSetRealNumberPrecision (12) << (m_freqNominal / 1.e6) << ";" << m_mode << ";" << m_hisCall << ";" - << ui->rptSpinBox->value() << ";" << m_modeTx << endl; + << ui->rptSpinBox->value() << ";" << m_modeTx << ";" << tmpGrid << endl; f.close(); } else { if (m_splash && m_splash->isVisible ()) m_splash->hide ();