From caa51f4999294782ae4e91a9065b49f3eb2f6bc0 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 10 Nov 2015 18:39:37 +0000 Subject: [PATCH] Display default_frequency (14.076 MHz) at startup, rather than 18446744073709551615 Hz. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6069 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 7 ++++++- mainwindow.ui | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index bd38b128e..e1db430f0 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1169,7 +1169,12 @@ void MainWindow::displayDialFrequency () } update_dynamic_property (ui->labDialFreq, "oob", !valid); - ui->labDialFreq->setText (Radio::pretty_frequency_MHz_string (m_dialFreq)); + if(m_dialFreq==18446744073709551615u) { + ui->labDialFreq->setText (Radio::pretty_frequency_MHz_string (default_frequency)); + } else { + ui->labDialFreq->setText (Radio::pretty_frequency_MHz_string (m_dialFreq)); + + } } void MainWindow::statusChanged() diff --git a/mainwindow.ui b/mainwindow.ui index d79971777..0fe427552 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -573,7 +573,7 @@ QLabel[oob="true"] { - 1 + 0