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
This commit is contained in:
Joe Taylor 2015-11-10 18:39:37 +00:00
parent 4a38e03020
commit caa51f4999
2 changed files with 7 additions and 2 deletions

View File

@ -1169,7 +1169,12 @@ void MainWindow::displayDialFrequency ()
} }
update_dynamic_property (ui->labDialFreq, "oob", !valid); update_dynamic_property (ui->labDialFreq, "oob", !valid);
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)); ui->labDialFreq->setText (Radio::pretty_frequency_MHz_string (m_dialFreq));
}
} }
void MainWindow::statusChanged() void MainWindow::statusChanged()

View File

@ -573,7 +573,7 @@ QLabel[oob="true"] {
<item row="0" column="3" rowspan="3"> <item row="0" column="3" rowspan="3">
<widget class="QStackedWidget" name="controls_stack_widget"> <widget class="QStackedWidget" name="controls_stack_widget">
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="page"> <widget class="QWidget" name="page">
<layout class="QHBoxLayout" name="horizontalLayout_8"> <layout class="QHBoxLayout" name="horizontalLayout_8">