mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-31 15:47:10 -04:00
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
This commit is contained in:
parent
4db706e5f1
commit
f323a5ed35
@ -1958,9 +1958,11 @@ void MainWindow::statusChanged()
|
|||||||
QFile f {m_config.temp_dir ().absoluteFilePath ("wsjtx_status.txt")};
|
QFile f {m_config.temp_dir ().absoluteFilePath ("wsjtx_status.txt")};
|
||||||
if(f.open(QFile::WriteOnly | QIODevice::Text)) {
|
if(f.open(QFile::WriteOnly | QIODevice::Text)) {
|
||||||
QTextStream out(&f);
|
QTextStream out(&f);
|
||||||
|
QString tmpGrid = m_hisGrid;
|
||||||
|
if (!tmpGrid.size ()) tmpGrid="n/a"; // Not Available
|
||||||
out << qSetRealNumberPrecision (12) << (m_freqNominal / 1.e6)
|
out << qSetRealNumberPrecision (12) << (m_freqNominal / 1.e6)
|
||||||
<< ";" << m_mode << ";" << m_hisCall << ";"
|
<< ";" << m_mode << ";" << m_hisCall << ";"
|
||||||
<< ui->rptSpinBox->value() << ";" << m_modeTx << endl;
|
<< ui->rptSpinBox->value() << ";" << m_modeTx << ";" << tmpGrid << endl;
|
||||||
f.close();
|
f.close();
|
||||||
} else {
|
} else {
|
||||||
if (m_splash && m_splash->isVisible ()) m_splash->hide ();
|
if (m_splash && m_splash->isVisible ()) m_splash->hide ();
|
||||||
|
Loading…
Reference in New Issue
Block a user