Activate the "read frequency once" orange button.

Delete the last tentatively-saved file on program exit.
No negative numbers needed on "CW ID" spinner.
Updates to User's Guide.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3259 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2013-05-07 16:35:50 +00:00
parent f9f180818c
commit 363d3d548f
3 changed files with 15 additions and 16 deletions

Binary file not shown.

View File

@ -408,7 +408,7 @@
</size>
</property>
<property name="minimum">
<number>-20</number>
<number>0</number>
</property>
<property name="maximum">
<number>10</number>

View File

@ -950,6 +950,7 @@ void MainWindow::closeEvent(QCloseEvent*)
void MainWindow::OnExit()
{
g_pWideGraph->saveSettings();
if(m_fname != "") killFile();
m_killAll=true;
mem_jt9->detach();
QFile quitFile(m_appDir + "/.quit");
@ -2818,19 +2819,17 @@ void MainWindow::on_pbT2R_clicked()
void MainWindow::on_readFreq_clicked()
{
if(m_dontReadFreq) {
m_dontReadFreq=false;
} else {
double fMHz=rig->getFreq(RIG_VFO_CURR)/1000000.0;
if(fMHz<0.0) {
QString rt;
rt.sprintf("Rig control error %d\nFailed to read frequency.",
int(1000000.0*fMHz));
msgBox(rt);
m_catEnabled=false;
}
int ndiff=1000000.0*(fMHz-m_dialFreq);
if(ndiff!=0) dialFreqChanged2(fMHz);
qDebug() << "A" << fMHz << ndiff;
}
m_dontReadFreq=false;
double fMHz=rig->getFreq(RIG_VFO_CURR)/1000000.0;
if(fMHz<0.0) {
QString rt;
rt.sprintf("Rig control error %d\nFailed to read frequency.",
int(1000000.0*fMHz));
msgBox(rt);
m_catEnabled=false;
}
if(fMHz<0.01 or fMHz>1300.0) fMHz=0;
int ndiff=1000000.0*(fMHz-m_dialFreq);
if(ndiff!=0) dialFreqChanged2(fMHz);
}